Displays a list of most recent location apps
Change-Id: I8e34ca8c30f308744022f17fac2444a496abd9e6 (cherry picked from commit 16ab0eca74751c331c1c74612548a27735a450b7)
This commit is contained in:
@@ -36,8 +36,11 @@ import com.android.settings.R;
|
||||
public class LocationSettings extends LocationSettingsBase
|
||||
implements CompoundButton.OnCheckedChangeListener {
|
||||
private static final String TAG = LocationSettings.class.getSimpleName();
|
||||
/** Key for preference screen "Mode" */
|
||||
private static final String KEY_LOCATION_MODE = "location_mode";
|
||||
/** Key for preference category "Recent location requests" */
|
||||
private static final String KEY_RECENT_LOCATION_REQUESTS = "recent_location_requests";
|
||||
/** Key for preference category "Location services" */
|
||||
private static final String KEY_LOCATION_SERVICES = "location_services";
|
||||
|
||||
private Switch mSwitch;
|
||||
@@ -100,6 +103,9 @@ public class LocationSettings extends LocationSettingsBase
|
||||
|
||||
Activity activity = getActivity();
|
||||
|
||||
RecentLocationApps recentApps = new RecentLocationApps(activity);
|
||||
recentApps.fillAppList(mRecentLocationRequests);
|
||||
|
||||
if (activity instanceof PreferenceActivity) {
|
||||
PreferenceActivity preferenceActivity = (PreferenceActivity) activity;
|
||||
// Only show the master switch when we're not in multi-pane mode, and not being used as
|
||||
|
Reference in New Issue
Block a user