Revert "Revert "Use location access for recent location apps.""

This reverts commit 5da4f381a6.

Reason for revert: Fixed the crash and roll forward

Test: Manual - tested with work profile.
Change-Id: I8b500b8fddc58cc0d0e5e7f4e54d8bb5cb6b3022
This commit is contained in:
Wei Wang
2021-02-24 06:11:21 +00:00
parent b8ccb41c30
commit 22399153dc
8 changed files with 132 additions and 165 deletions

View File

@@ -55,8 +55,8 @@ public class LocationPersonalSettings extends DashboardFragment {
use(LocationFooterPreferenceController.class).init(this);
final int profileType = getArguments().getInt(ProfileSelectFragment.EXTRA_PROFILE);
final RecentLocationRequestPreferenceController controller = use(
RecentLocationRequestPreferenceController.class);
final RecentLocationAccessPreferenceController controller = use(
RecentLocationAccessPreferenceController.class);
controller.init(this);
controller.setProfileType(profileType);
}