From f52d7fe4dbea009d60047de609562d1cc38b76a6 Mon Sep 17 00:00:00 2001 From: Lifu Tang Date: Wed, 22 Jan 2020 15:16:32 -0800 Subject: [PATCH] Fix recent location apps problem without profile Bug: 147298096 Test: Build and test on device manually. Change-Id: I14aaf23636d6a0e778154fe589131e66c313bfdd --- .../location/RecentLocationRequestSeeAllFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/location/RecentLocationRequestSeeAllFragment.java b/src/com/android/settings/location/RecentLocationRequestSeeAllFragment.java index 48a6aec5ec4..3f0defd1ac6 100644 --- a/src/com/android/settings/location/RecentLocationRequestSeeAllFragment.java +++ b/src/com/android/settings/location/RecentLocationRequestSeeAllFragment.java @@ -54,7 +54,9 @@ public class RecentLocationRequestSeeAllFragment extends DashboardFragment { mController = use(RecentLocationRequestSeeAllPreferenceController.class); mController.init(this); - mController.setProfileType(profileType); + if (profileType != 0) { + mController.setProfileType(profileType); + } } @Override