From b2d85af91e1d3a33dd80def07d6f45f14b20860a Mon Sep 17 00:00:00 2001 From: Jesse Evans Date: Wed, 26 Apr 2017 08:31:16 -0700 Subject: [PATCH] Make instant apps appear above disabled apps Currently instant apps appear below disabled apps in the app filter spinner, this is incorrect. This patch moves them above the disabled apps filter option. Test: make RunSettingsRoboTests Bug: 37683262 Change-Id: Id65ae47baca4eac43a6a89375bdb718d5dbf7c56 --- .../android/settings/applications/ManageApplications.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java index f24c3f70aeb..559204b0912 100644 --- a/src/com/android/settings/applications/ManageApplications.java +++ b/src/com/android/settings/applications/ManageApplications.java @@ -130,13 +130,13 @@ public class ManageApplications extends InstrumentedPreferenceFragment public static final int SIZE_EXTERNAL = 2; // Filter options used for displayed list of applications - // The order which they appear is the order they will show when spinner is present. + // Filters will appear sorted based on their value defined here. public static final int FILTER_APPS_POWER_WHITELIST = 0; public static final int FILTER_APPS_POWER_WHITELIST_ALL = 1; public static final int FILTER_APPS_ALL = 2; public static final int FILTER_APPS_ENABLED = 3; - public static final int FILTER_APPS_DISABLED = 4; - public static final int FILTER_APPS_INSTANT = 5; + public static final int FILTER_APPS_INSTANT = 4; + public static final int FILTER_APPS_DISABLED = 5; public static final int FILTER_APPS_BLOCKED = 6; public static final int FILTER_APPS_PERSONAL = 7; public static final int FILTER_APPS_WORK = 8;