Fix sub status of LocationSettings
Fix the followings: Recent access apps are not displayed after toggling off/on "Use location". When "Use location" is enabled, "Location for work profile" switch is disable and gray out. Fix: 227621199 Fix: 227265216 Test: manual Change-Id: I9f955a381827eb020fbd0d6ebeb9fced3dec1dcf
This commit is contained in:
@@ -20,13 +20,11 @@ import android.content.Context;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.settings.core.BasePreferenceController;
|
||||
|
||||
/**
|
||||
* Preference controller that handles the "See All" button for recent location access.
|
||||
*/
|
||||
public class RecentLocationAccessSeeAllButtonPreferenceController extends
|
||||
LocationBasePreferenceController implements BasePreferenceController.UiBlocker {
|
||||
LocationBasePreferenceController {
|
||||
|
||||
private Preference mPreference;
|
||||
|
||||
@@ -46,6 +44,6 @@ public class RecentLocationAccessSeeAllButtonPreferenceController extends
|
||||
@Override
|
||||
public void onLocationModeChanged(int mode, boolean restricted) {
|
||||
boolean enabled = mLocationEnabler.isEnabled(mode);
|
||||
updatePreferenceVisibilityDelegate(mPreference, enabled);
|
||||
mPreference.setVisible(enabled);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user