Fix recent location apps problem without profile

Bug: 147298096
Test: Build and test on device manually.
Change-Id: I14aaf23636d6a0e778154fe589131e66c313bfdd
This commit is contained in:
Lifu Tang
2020-01-22 15:16:32 -08:00
parent ccc42b932f
commit f52d7fe4db

View File

@@ -54,8 +54,10 @@ public class RecentLocationRequestSeeAllFragment extends DashboardFragment {
mController = use(RecentLocationRequestSeeAllPreferenceController.class); mController = use(RecentLocationRequestSeeAllPreferenceController.class);
mController.init(this); mController.init(this);
if (profileType != 0) {
mController.setProfileType(profileType); mController.setProfileType(profileType);
} }
}
@Override @Override
protected int getPreferenceScreenResId() { protected int getPreferenceScreenResId() {