Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYi0526 committed Mar 30, 2024
2 parents 2e876e1 + 1ed37c2 commit 3ac7c88
Show file tree
Hide file tree
Showing 29 changed files with 42 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ local.properties
obj/
service_account_credentials.json
__pycache__/
release/

6 changes: 5 additions & 1 deletion TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ if (nativeTarget == null) nativeTarget = ""

android {
compileSdkVersion 33
buildToolsVersion "33.0.0"
ndkVersion rootProject.ext.ndkVersion

defaultConfig.applicationId = "xyz.nextalone.nagram"
Expand Down Expand Up @@ -364,11 +363,16 @@ android {
}

def lib = "libtmessages.*.so"
pickFirst "lib/armeabi-v7a/$lib"
pickFirst "lib/arm64-v8a/$lib"
}
namespace "org.telegram.messenger"
lint {
disable 'MissingTranslation', 'ExtraTranslation', 'BlockedPrivateApi'
}
buildFeatures {
buildConfig true
}

tasks.configureEach { task ->
if (task.name.startsWith("uploadCrashlyticsMappingFile")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public MemberRequestCell(@NonNull Context context, OnClickListener clickListener

float dismissButtonWidth = dismissButton.getPaint().measureText(dismissButton.getText().toString()) + btnPadding * 2;
TextView banButton = new TextView(getContext());
banButton.setBackground(Theme.AdaptiveRipple.filledRect(Theme.key_featuredStickers_addButton, 4));
banButton.setBackground(Theme.AdaptiveRipple.filledRectByKey(Theme.key_featuredStickers_addButton, 4));
banButton.setGravity((LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.CENTER_VERTICAL);
banButton.setMaxLines(1);
banButton.setPadding(btnPadding, 0, btnPadding, 0);
Expand Down
11 changes: 11 additions & 0 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2586,6 +2586,9 @@ public boolean onFragmentCreate() {

getNotificationCenter().addPostponeNotificationsCallback(postponeNotificationsWhileLoadingCallback);

// na: unread count
getNotificationCenter().addObserver(this, NotificationCenter.dialogsUnreadCounterChanged);

if (chatMode != MODE_SCHEDULED) {
if (threadMessageId == 0) {
getNotificationCenter().addObserver(this, NotificationCenter.screenshotTook);
Expand Down Expand Up @@ -2983,6 +2986,10 @@ public void onFragmentDestroy() {
AndroidUtilities.cancelRunOnUIThread(chatInviteRunnable);
chatInviteRunnable = null;
}

// na: unread count
getNotificationCenter().removeObserver(this, NotificationCenter.dialogsUnreadCounterChanged);

getNotificationCenter().removePostponeNotificationsCallback(postponeNotificationsWhileLoadingCallback);
getMessagesController().setLastCreatedDialogId(dialog_id, chatMode == MODE_SCHEDULED, false);
getNotificationCenter().removeObserver(this, NotificationCenter.messagesDidLoad);
Expand Down Expand Up @@ -33391,6 +33398,10 @@ public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) {
});
}
}
// na: unread count
if (actionBar != null) {
actionBar.unreadBadgeSetCount(getMessagesStorage().getMainUnreadCount());
}
}

int position = holder.getAdapterPosition();
Expand Down
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-ar-rSA/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">دفع موحد</string>
<string name="PushServiceTypeInAppDialog">إظهار الإشعارات المقيمة</string>
<string name="PushServiceTypeUnifiedGateway">بوابة دفع موحدة</string>
<string name="SendMp4DocumentAsVideo">إرسال مستند mp4 كفيديو</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-cs-rCZ/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Sjednocený posun</string>
<string name="PushServiceTypeInAppDialog">Zobrazit rezidentní oznámení</string>
<string name="PushServiceTypeUnifiedGateway">Sjednocená posuvná brána</string>
<string name="SendMp4DocumentAsVideo">Poslat dokument mp4 jako video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-da-rDK/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Unified Push</string>
<string name="PushServiceTypeInAppDialog">Vis residente notifikationer</string>
<string name="PushServiceTypeUnifiedGateway">Unified Push Gateway</string>
<string name="SendMp4DocumentAsVideo">Send mp4-dokument som video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-de-rDE/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Einheitlicher Push</string>
<string name="PushServiceTypeInAppDialog">Resident-Benachrichtigungen anzeigen</string>
<string name="PushServiceTypeUnifiedGateway">Einheitliches Push-Gateway</string>
<string name="SendMp4DocumentAsVideo">mp4 Dokument als Video senden</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-el-rGR/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Ενοποιημένη Προώθηση</string>
<string name="PushServiceTypeInAppDialog">Εμφάνιση ειδοποιήσεων κατοίκων</string>
<string name="PushServiceTypeUnifiedGateway">Ενοποιημένη Πύλη Ώθησης</string>
<string name="SendMp4DocumentAsVideo">Αποστολή εγγράφου mp4 ως βίντεο</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-es-rES/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Unified Push</string>
<string name="PushServiceTypeInAppDialog">Mostrar notificación permanente</string>
<string name="PushServiceTypeUnifiedGateway">Gateway de Unified Push</string>
<string name="SendMp4DocumentAsVideo">Enviar documento mp4 como vídeo</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-fi-rFI/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Yhdistetty Työntö</string>
<string name="PushServiceTypeInAppDialog">Näytä kotimaiset ilmoitukset</string>
<string name="PushServiceTypeUnifiedGateway">Yhdistetty Push-Yhdyskäytävä</string>
<string name="SendMp4DocumentAsVideo">Lähetä mp4-asiakirja videona</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-fr-rFR/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Push unifié</string>
<string name="PushServiceTypeInAppDialog">Afficher les notifications des résidents</string>
<string name="PushServiceTypeUnifiedGateway">Passerelle Push unifiée</string>
<string name="SendMp4DocumentAsVideo">Envoyer le document mp4 en tant que vidéo</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-it-rIT/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Push Unificato</string>
<string name="PushServiceTypeInAppDialog">Mostra notifiche residenti</string>
<string name="PushServiceTypeUnifiedGateway">Unified Push Gateway</string>
<string name="SendMp4DocumentAsVideo">Invia il documento mp4 come video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-ja-rJP/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">統一されたプッシュ</string>
<string name="PushServiceTypeInAppDialog">常駐通知を表示</string>
<string name="PushServiceTypeUnifiedGateway">Unified Push Gateway</string>
<string name="SendMp4DocumentAsVideo">mp4ドキュメントを動画として送信</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-nl-rNL/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Gecombineerde Push</string>
<string name="PushServiceTypeInAppDialog">Toon inactieve meldingen</string>
<string name="PushServiceTypeUnifiedGateway">Gecombineerde Push Gateway</string>
<string name="SendMp4DocumentAsVideo">Stuur mp4-document als video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-no-rNO/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Felles Push</string>
<string name="PushServiceTypeInAppDialog">Vis varsling fra kunder</string>
<string name="PushServiceTypeUnifiedGateway">Enhetlig Push Gateway</string>
<string name="SendMp4DocumentAsVideo">Send mp4-dokument som video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-pl-rPL/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Jednolite Push</string>
<string name="PushServiceTypeInAppDialog">Pokaż powiadomienia mieszkańców</string>
<string name="PushServiceTypeUnifiedGateway">Zunifikowana brama popychająca</string>
<string name="SendMp4DocumentAsVideo">Wyślij dokument mp4 jako film</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-pt-rBR/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Envio Unificado</string>
<string name="PushServiceTypeInAppDialog">Mostrar notificações residentes</string>
<string name="PushServiceTypeUnifiedGateway">Gateway Unificado</string>
<string name="SendMp4DocumentAsVideo">Enviar documento mp4 como vídeo</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-pt-rPT/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Envio Unificado</string>
<string name="PushServiceTypeInAppDialog">Mostrar notificações residentes</string>
<string name="PushServiceTypeUnifiedGateway">Gateway Unificado</string>
<string name="SendMp4DocumentAsVideo">Enviar documento mp4 como vídeo</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-ro-rRO/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Push unificat</string>
<string name="PushServiceTypeInAppDialog">Arată notificările rezidenților</string>
<string name="PushServiceTypeUnifiedGateway">Gateway Push Unificat</string>
<string name="SendMp4DocumentAsVideo">Trimite documentul mp4 ca video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-ru-rRU/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Единый толчок</string>
<string name="PushServiceTypeInAppDialog">Показывать уведомления жителя</string>
<string name="PushServiceTypeUnifiedGateway">Единый Push шлюз</string>
<string name="SendMp4DocumentAsVideo">Отправить mp4 документ как видео</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-sv-rSE/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Enhetlig Push</string>
<string name="PushServiceTypeInAppDialog">Visa inhemska aviseringar</string>
<string name="PushServiceTypeUnifiedGateway">Enhetlig Push Gateway</string>
<string name="SendMp4DocumentAsVideo">Skicka mp4-dokument som video</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-uk-rUA/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@
<string name="PushServiceTypeUnified">Одноразове штовхання</string>
<string name="PushServiceTypeInAppDialog">Показувати сповіщення резидента</string>
<string name="PushServiceTypeUnifiedGateway">Уніфікований Push-шлюз</string>
<string name="SendMp4DocumentAsVideo">Відправити mp4 документ як відео</string>
</resources>
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/values-zh-rTW/strings_na.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,5 @@
<string name="PushServiceTypeUnified">Unified Push</string>
<string name="PushServiceTypeInAppDialog">Show resident notifications</string>
<string name="PushServiceTypeUnifiedGateway">Unified Push Gateway</string>
<string name="SendMp4DocumentAsVideo">Send mp4 document as video</string>
</resources>
2 changes: 1 addition & 1 deletion bin/libs/native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "bin/init/env.sh"

OUT=TMessagesProj/build/intermediates/stripped_native_libs/release/out/lib
OUT=TMessagesProj/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib
DIR=TMessagesProj/src/main/libs

export COMPILE_NATIVE=1
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.1'
classpath 'com.android.tools.build:gradle:8.3.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0'
classpath 'com.google.gms:google-services:4.4.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ org.gradle.configureondemand=false
android.useAndroidX=true
android.enableJetifier=true
android.enableR8.fullMode=false
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Aug 17 16:55:16 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
1 change: 0 additions & 1 deletion openpgp-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ android {
targetSdkVersion 33
}

buildToolsVersion '33.0.0'
lint {
abortOnError false
}
Expand Down

0 comments on commit 3ac7c88

Please sign in to comment.