Skip to content

Commit 2a3e1ff

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "More on issue #7318666: hide developer options from user build" into jb-mr1-dev
2 parents 8e76711 + 8d866e5 commit 2a3e1ff

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

core/java/android/app/LauncherActivity.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,21 @@ protected Intent getTargetIntent() {
439439
protected List<ResolveInfo> onQueryPackageManager(Intent queryIntent) {
440440
return mPackageManager.queryIntentActivities(queryIntent, /* no flags */ 0);
441441
}
442-
442+
443+
/**
444+
* @hide
445+
*/
446+
protected void onSortResultList(List<ResolveInfo> results) {
447+
Collections.sort(results, new ResolveInfo.DisplayNameComparator(mPackageManager));
448+
}
449+
443450
/**
444451
* Perform the query to determine which results to show and return a list of them.
445452
*/
446453
public List<ListItem> makeListItems() {
447454
// Load all matching activities and sort correctly
448455
List<ResolveInfo> list = onQueryPackageManager(mIntent);
449-
Collections.sort(list, new ResolveInfo.DisplayNameComparator(mPackageManager));
456+
onSortResultList(list);
450457

451458
ArrayList<ListItem> result = new ArrayList<ListItem>(list.size());
452459
int listSize = list.size();

core/java/android/provider/Settings.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,9 @@ public final class Settings {
386386

387387
/**
388388
* Activity Action: Show settings to allow configuration of application
389-
* development-related settings.
390-
* <p>
391-
* In some cases, a matching Activity may not exist, so ensure you safeguard
392-
* against this.
389+
* development-related settings. As of
390+
* {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1} this action is
391+
* a required part of the platform.
393392
* <p>
394393
* Input: Nothing.
395394
* <p>

0 commit comments

Comments
 (0)