File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments