diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index 1de0f59492..6574fb7b4e 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -307,12 +307,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { output -> - 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 + outputFileName = outputFileName.replace("TMessagesProj", "Nagram-v" + versionName).replace("-release", "") } } diff --git a/TMessagesProj/src/main/AndroidManifest.xml b/TMessagesProj/src/main/AndroidManifest.xml index 6e23afea2d..4ab6fc1fcf 100644 --- a/TMessagesProj/src/main/AndroidManifest.xml +++ b/TMessagesProj/src/main/AndroidManifest.xml @@ -385,6 +385,20 @@ + + + + + + + + + + + + + + diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index c0a05a211d..1d9837bde1 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -3951,11 +3951,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; }); @@ -10601,7 +10601,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.BUILD_TYPE); + cell.setText("Nagram v" + BuildConfig.VERSION_NAME + "(" + BuildConfig.VERSION_CODE + ") " + Build.SUPPORTED_ABIS[0].toLowerCase(Locale.ROOT) + " " + BuildConfig.FLAVOR + " " + BuildConfig.BUILD_TYPE); cell.getTextView().setPadding(0, AndroidUtilities.dp(14), 0, AndroidUtilities.dp(14)); view = cell;