Skip to content

Commit

Permalink
Revert "perf: remove mini flag"
Browse files Browse the repository at this point in the history
This reverts commit 3e36e54.
  • Loading branch information
LiuYi0526 committed Feb 18, 2024
1 parent 4b46b1a commit 8892953
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
7 changes: 1 addition & 6 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
}
}

Expand Down
14 changes: 14 additions & 0 deletions TMessagesProj/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,20 @@
<data android:host="t.me" android:scheme="http" />
<data android:host="t.me" android:scheme="https" />
</intent-filter>
<intent-filter android:icon="@mipmap/ic_launcher_nagram" android:roundIcon="@mipmap/ic_launcher_nagram_round" android:priority="1" android:enabled="${is_full_version}">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="vmess" />
<data android:scheme="vmess1" />
<data android:scheme="ss" />
<data android:scheme="ssr" />
<data android:scheme="ws" />
<data android:scheme="wss" />
<data android:scheme="trojan" />

</intent-filter>
<intent-filter android:icon="@mipmap/ic_launcher_nagram" android:roundIcon="@mipmap/ic_launcher_nagram_round" android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
Expand Down
12 changes: 6 additions & 6 deletions TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8892953

Please sign in to comment.