Created
October 19, 2017 14:09
-
-
Save BadDaemon/f691af20f0a4330ba05cbcbd7d038c7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/com/android/settings/dashboard/DashboardFragment.java b/src/com/android/settings/dashboard/DashboardFragment.java | |
index 3687929..85eba93 100644 | |
--- a/src/com/android/settings/dashboard/DashboardFragment.java | |
+++ b/src/com/android/settings/dashboard/DashboardFragment.java | |
@@ -235,8 +235,11 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment | |
addPreferencesFromResource(resId); | |
final PreferenceScreen screen = getPreferenceScreen(); | |
Collection<PreferenceController> controllers = mPreferenceControllers.values(); | |
+ int order = 10; | |
for (PreferenceController controller : controllers) { | |
+ controller.orderPreference(screen, order); | |
controller.displayPreference(screen); | |
+ order += 10; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment