Settings: Initial Evolution X rebrand

Co-authored-by: AnierinB <anierin@evolution-x.org>
Co-authored-by: Jackeagle <jackeagle102@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Co-authored-by: ganeshi4u <ganeshvarmai4u@gmail.com>
Signed-off-by: AnierinB <anierin@evolution-x.org>
This commit is contained in:
AnierinB
2024-11-16 13:46:14 +00:00
committed by Joey
parent cee9137640
commit f4515f015b
49 changed files with 2588 additions and 109 deletions

View File

@@ -80,20 +80,22 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
private static final long TIMEOUT_MILLIS = 50L;
private static final List<String> ACCOUNT_INJECTED_KEYS = Arrays.asList(
"top_level_google"
);
private static final List<String> SYSTEM_INFO_INJECTED_KEYS = Arrays.asList(
"dashboard_tile_pref_com.google.android.gms.backup.component.BackupOrRestoreSettingsActivity"
);
private static final List<String> SECURITY_PRIVACY_INJECTED_KEYS = Arrays.asList(
"top_level_wellbeing",
"top_level_google"
"top_level_wellbeing"
);
private static final ArrayMap<String, Integer> KEY_ORDER = new ArrayMap<>();
static {
// We have "Passwords, passkeys & accounts with order "-10" above
KEY_ORDER.put("top_level_wellbeing", -5);
KEY_ORDER.put("top_level_google", 0);
// We have "Safety & emergency with order "10" below
// We have "Storage" with order "-50" above
KEY_ORDER.put("dashboard_tile_pref_com.google.android.gms.backup.component.BackupOrRestoreSettingsActivity", -45);
// We have "Battery" with order "-30" below
}
@VisibleForTesting
@@ -649,6 +651,8 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
group = screen.findPreference(tile.getGroupKey());
} else if (ACCOUNT_INJECTED_KEYS.contains(key)) {
group = screen.findPreference("top_level_account_category");
} else if (SYSTEM_INFO_INJECTED_KEYS.contains(key)) {
group = screen.findPreference("top_level_system_info_category");
} else if (SECURITY_PRIVACY_INJECTED_KEYS.contains(key)) {
group = screen.findPreference("top_level_security_privacy_category");
}