Settings Fragment Migration (Build pass app)
This patch focused on fixing compile errors and some runtime errors. Test: We can't test it now. But we will have an integration test later. Bug: 110259478 Change-Id: I16c471ddcd0fa1460c665b7f74d86fcace5ee67b
This commit is contained in:
@@ -238,7 +238,7 @@ public class AppInfoDashboardFragment extends DashboardFragment
|
||||
}
|
||||
final String packageName = getPackageName();
|
||||
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
||||
final Lifecycle lifecycle = getLifecycle();
|
||||
final Lifecycle lifecycle = getSettingsLifecycle();
|
||||
|
||||
// The following are controllers for preferences that needs to refresh the preference state
|
||||
// when app state changes.
|
||||
@@ -524,7 +524,7 @@ public class AppInfoDashboardFragment extends DashboardFragment
|
||||
}
|
||||
if (mState == null) {
|
||||
mState = ApplicationsState.getInstance(activity.getApplication());
|
||||
mSession = mState.newSession(this, getLifecycle());
|
||||
mSession = mState.newSession(this, getSettingsLifecycle());
|
||||
}
|
||||
mUserId = UserHandle.myUserId();
|
||||
mAppEntry = mState.getEntry(getPackageName(), UserHandle.myUserId());
|
||||
|
Reference in New Issue
Block a user