From 253ccb91270b586f50fdb2010391148dbd44ad9e Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Tue, 2 May 2023 18:18:59 -0400 Subject: [PATCH] final tweaks v2 Signed-off-by: androidacy-user --- README.md | 2 +- app/build.gradle.kts | 5 ++--- app/src/main/java/com/fox2code/mmm/AppUpdateManager.java | 2 +- app/src/main/java/com/fox2code/mmm/MainApplication.java | 2 +- app/src/main/java/com/fox2code/mmm/NotificationType.java | 2 +- .../java/com/fox2code/mmm/settings/SettingsActivity.java | 8 ++++---- app/src/main/res/values-uk/strings.xml | 2 +- app/src/main/res/xml/root_preferences.xml | 2 +- docs/DEVELOPERS.md | 2 +- docs/examples/example_module/module.prop | 2 +- docs/examples/rainbow_module/module.prop | 2 +- 11 files changed, 15 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 21dbefb..7892f6e 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ translations: [https://translate.nift4.org/engage/foxmmm/](https://translate.nif ### GitHub method (advanced users) -See [`app/src/main/res/values/strings.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/strings.xml) +See [`app/src/main/res/values/strings.xml`](https://github.com/Androidacy/MagiskModuleManager/blob/master/app/src/main/res/values/strings.xml) If your language is right to left don't forget to set `lang_support_rtl` to `true`. diff --git a/app/build.gradle.kts b/app/build.gradle.kts index de30d22..6800bbc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -44,7 +44,7 @@ android { useSupportLibrary = true } multiDexEnabled = true - resourceConfigurations.addAll(listOf("ar", "bs", "de", "es-rMX", "fr", "hu", "id", "ja", "nl", "pl", "pt", "pt-rBR", "ro", "ru", "tr", "uk", "zh", "zh-rTW", "en")) + resourceConfigurations.addAll(listOf("ar", "bs", "cs", "de", "es-rMX", "fr", "hu", "id", "ja", "nl", "pl", "pt", "pt-rBR", "ro", "ru", "tr", "uk", "zh", "zh-rTW", "en")) } splits { @@ -55,8 +55,7 @@ android { // Enables building multiple APKs per ABI. isEnable = true - // By default all ABIs are included, so use reset() and include to specify that you only - // want APKs for x86 and x86_64. + // By default all ABIs are included, so use reset() // Resets the list of ABIs for Gradle to create APKs for to none. reset() diff --git a/app/src/main/java/com/fox2code/mmm/AppUpdateManager.java b/app/src/main/java/com/fox2code/mmm/AppUpdateManager.java index 2fde7fa..1f65a8a 100644 --- a/app/src/main/java/com/fox2code/mmm/AppUpdateManager.java +++ b/app/src/main/java/com/fox2code/mmm/AppUpdateManager.java @@ -28,7 +28,7 @@ public class AppUpdateManager { public static final int FLAG_COMPAT_FORCE_HIDE = 0x0080; public static final int FLAG_COMPAT_MMT_REBORN = 0x0100; public static final int FLAG_COMPAT_ZIP_WRAPPER = 0x0200; - public static final String RELEASES_API_URL = "https://api.github.com/repos/Fox2Code/FoxMagiskModuleManager/releases/latest"; + public static final String RELEASES_API_URL = "https://api.github.com/repos/Androidacy/MagiskModuleManager/releases/latest"; private static final AppUpdateManager INSTANCE = new AppUpdateManager(); private final HashMap compatDataId = new HashMap<>(); private final Object updateLock = new Object(); diff --git a/app/src/main/java/com/fox2code/mmm/MainApplication.java b/app/src/main/java/com/fox2code/mmm/MainApplication.java index 7b4ccfd..f24f2a0 100644 --- a/app/src/main/java/com/fox2code/mmm/MainApplication.java +++ b/app/src/main/java/com/fox2code/mmm/MainApplication.java @@ -382,7 +382,7 @@ public class MainApplication extends FoxApplication implements androidx.work.Con @Override public void onCreate() { - supportedLocales.addAll(Arrays.asList("ar", "bs", "de", "es-rMX", "fr", "hu", "id", "ja", "nl", "pl", "pt", "pt-rBR", "ro", "ru", "tr", "uk", "zh", "zh-rTW", "en")); + supportedLocales.addAll(Arrays.asList("ar", "bs", "cs", "de", "es-rMX", "fr", "hu", "id", "ja", "nl", "pl", "pt", "pt-rBR", "ro", "ru", "tr", "uk", "zh", "zh-rTW", "en")); if (INSTANCE == null) INSTANCE = this; relPackageName = this.getPackageName(); super.onCreate(); diff --git a/app/src/main/java/com/fox2code/mmm/NotificationType.java b/app/src/main/java/com/fox2code/mmm/NotificationType.java index 83ab7a7..523af85 100644 --- a/app/src/main/java/com/fox2code/mmm/NotificationType.java +++ b/app/src/main/java/com/fox2code/mmm/NotificationType.java @@ -99,7 +99,7 @@ public enum NotificationType implements NotificationTypeCst { }, UPDATE_AVAILABLE(R.string.app_update_available, R.drawable.ic_baseline_system_update_24, androidx.appcompat.R.attr.colorPrimary, com.google.android.material.R.attr.colorOnPrimary, v -> IntentHelper.openUrl(v.getContext(), - "https://github.com/Fox2Code/FoxMagiskModuleManager/releases"), false) { + "https://github.com/Androidacy/MagiskModuleManager/releases"), false) { @Override public boolean shouldRemove() { return !AppUpdateManager.getAppUpdateManager().peekShouldUpdate(); diff --git a/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java b/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java index 299e1a7..063be99 100644 --- a/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java +++ b/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java @@ -627,7 +627,7 @@ public class SettingsActivity extends FoxActivity implements LanguageActivity { }); linkClickable.setOnPreferenceLongClickListener(p -> { String toastText = requireContext().getString(R.string.link_copied); - clipboard.setPrimaryClip(ClipData.newPlainText(toastText, "https://github.com/Fox2Code/FoxMagiskModuleManager/releases/latest")); + clipboard.setPrimaryClip(ClipData.newPlainText(toastText, "https://github.com/Androidacy/MagiskModuleManager/releases/latest")); Toast.makeText(requireContext(), toastText, Toast.LENGTH_SHORT).show(); return true; }); @@ -646,12 +646,12 @@ public class SettingsActivity extends FoxActivity implements LanguageActivity { linkClickable.setOnPreferenceClickListener(p -> { devModeStep = 0; devModeStepFirstBootIgnore = true; - IntentHelper.openUrl(p.getContext(), "https://github.com/Fox2Code/FoxMagiskModuleManager/issues"); + IntentHelper.openUrl(p.getContext(), "https://github.com/Androidacy/MagiskModuleManager/issues"); return true; }); linkClickable.setOnPreferenceLongClickListener(p -> { String toastText = requireContext().getString(R.string.link_copied); - clipboard.setPrimaryClip(ClipData.newPlainText(toastText, "https://github.com/Fox2Code/FoxMagiskModuleManager/issues")); + clipboard.setPrimaryClip(ClipData.newPlainText(toastText, "https://github.com/Androidacy/MagiskModuleManager/issues")); Toast.makeText(requireContext(), toastText, Toast.LENGTH_SHORT).show(); return true; }); @@ -1314,7 +1314,7 @@ public class SettingsActivity extends FoxActivity implements LanguageActivity { }); builder.setNegativeButton("Cancel", (dialog, which) -> dialog.cancel()); builder.setNeutralButton("Docs", (dialog, which) -> { - Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/docs/DEVELOPERS.md#custom-repo-format")); + Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/Androidacy/MagiskModuleManager/blob/master/docs/DEVELOPERS.md#custom-repo-format")); startActivity(intent); }); AlertDialog alertDialog = builder.show(); diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 1195458..598383b 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -319,7 +319,7 @@ Змін ще немає! Скасувати оновлення URL-адреса, яку ви ввели для репозиторію, недійсна - Репозиторії повинні обслуговуватися за допомогою HTTPS і відповідати специфікаціям, викладеним у документації. + Репозиторії повинні обслуговуватися за допомогою HTTPS і відповідати специфікаціям, викладеним у документації. Наступні модулі можуть бути оновлені: %1$s до версії %2$s Перевірка оновлень… diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml index 6a772d0..c0ca397 100644 --- a/app/src/main/res/xml/root_preferences.xml +++ b/app/src/main/res/xml/root_preferences.xml @@ -3,7 +3,7 @@ - +