Settings: OverlayCategoryPreferenceController: Sort overlays by name

No, the user has no reason to view em by priority, thank you.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Ido Ben-Hur
2020-10-27 15:27:32 +02:00
committed by Joey
parent 0bbb944325
commit aa75e0cb50

View File

@@ -54,7 +54,7 @@ public class OverlayCategoryPreferenceController extends DeveloperOptionsPrefere
static final String PACKAGE_DEVICE_DEFAULT = "package_device_default"; static final String PACKAGE_DEVICE_DEFAULT = "package_device_default";
private static final String OVERLAY_TARGET_PACKAGE = "android"; private static final String OVERLAY_TARGET_PACKAGE = "android";
private static final Comparator<OverlayInfo> OVERLAY_INFO_COMPARATOR = private static final Comparator<OverlayInfo> OVERLAY_INFO_COMPARATOR =
Comparator.comparingInt(a -> a.priority); Comparator.comparing(OverlayInfo::getPackageName);
private final IOverlayManager mOverlayManager; private final IOverlayManager mOverlayManager;
private final boolean mAvailable; private final boolean mAvailable;
private final String mCategory; private final String mCategory;