Use location access for recent location apps.

Bug: 177685444
Test: Manual

Change-Id: Id22ce156b20b66cf0607879ea0f9f874b621894d
This commit is contained in:
Wei Wang
2021-01-12 10:01:25 -08:00
parent 478db86589
commit f383cb44b4
7 changed files with 130 additions and 166 deletions

View File

@@ -21,7 +21,6 @@ import android.content.Context;
import com.android.settings.R;
import com.android.settings.dashboard.DashboardFragment;
import com.android.settings.dashboard.profileselector.ProfileSelectFragment;
/**
* Location Setting page for managed profile.
@@ -54,11 +53,9 @@ public class LocationWorkProfileSettings extends DashboardFragment {
use(LocationFooterPreferenceController.class).init(this);
use(LocationForWorkPreferenceController.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);
}
@Override