From 57fccd48d4f26f86db2051eb863d511307b05cc0 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 18 Feb 2024 12:03:06 +0800 Subject: [PATCH] perf: remove mini flag --- TMessagesProj/build.gradle | 7 ++++++- TMessagesProj/src/main/AndroidManifest.xml | 14 -------------- .../main/java/org/telegram/ui/ProfileActivity.java | 12 ++++++------ 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index 862ffdc8e6..a7d17f1681 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -307,7 +307,12 @@ android { applicationVariants.all { variant -> variant.outputs.all { output -> - outputFileName = outputFileName.replace("TMessagesProj", "Nagram-v" + versionName).replace("-release", "") + String gramName = "Nagram" + String first = String.format("%s-v%s(%s)", gramName, versionName, versionCode) + String name = outputFileName.replace("TMessagesProj", first) + name = name.replace("-release", "") + name = name.replace("-mini", "") + outputFileName = name } } diff --git a/TMessagesProj/src/main/AndroidManifest.xml b/TMessagesProj/src/main/AndroidManifest.xml index 4ab6fc1fcf..6e23afea2d 100644 --- a/TMessagesProj/src/main/AndroidManifest.xml +++ b/TMessagesProj/src/main/AndroidManifest.xml @@ -385,20 +385,6 @@ - - - - - - - - - - - - - - diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index 51aba77490..ccb34f610d 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -3942,11 +3942,11 @@ public void openExceptions() { switchBuilder.doRadioCheck(radioButtonCell); return Unit.INSTANCE; }); - switchBuilder.addRadioItem(LocaleController.getString("AutoCheckUpdatePreview", R.string.AutoCheckUpdatePreview), NekoXConfig.autoUpdateReleaseChannel == 3, (radioButtonCell) -> { - NekoXConfig.setAutoUpdateReleaseChannel(3); - switchBuilder.doRadioCheck(radioButtonCell); - return Unit.INSTANCE; - }); +// switchBuilder.addRadioItem(LocaleController.getString("AutoCheckUpdatePreview", R.string.AutoCheckUpdatePreview), NekoXConfig.autoUpdateReleaseChannel == 3, (radioButtonCell) -> { +// NekoXConfig.setAutoUpdateReleaseChannel(3); +// switchBuilder.doRadioCheck(radioButtonCell); +// return Unit.INSTANCE; +// }); showDialog(switchBuilder.create()); return Unit.INSTANCE; }); @@ -10592,7 +10592,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { cell.getTextView().setMovementMethod(null); cell.setBackground(Theme.getThemedDrawable(mContext, R.drawable.greydivider_bottom, Theme.key_windowBackgroundGrayShadow)); - cell.setText("Nagram v" + BuildConfig.VERSION_NAME + "(" + BuildConfig.VERSION_CODE + ") " + Build.SUPPORTED_ABIS[0].toLowerCase(Locale.ROOT) + " " + BuildConfig.FLAVOR + " " + BuildConfig.BUILD_TYPE); + cell.setText("Nagram v" + BuildConfig.VERSION_NAME + "(" + BuildConfig.VERSION_CODE + ") " + Build.SUPPORTED_ABIS[0].toLowerCase(Locale.ROOT) + " " + BuildConfig.BUILD_TYPE); cell.getTextView().setPadding(0, AndroidUtilities.dp(14), 0, AndroidUtilities.dp(14)); view = cell;