Skip to content

Commit 8bb3438

Browse files
committed
update to 9.4.8
1 parent 7554c9b commit 8bb3438

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

‎TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public class BuildVars {
2424
public static boolean USE_CLOUD_STRINGS = true;
2525
public static boolean CHECK_UPDATES = true;
2626
public static boolean NO_SCOPED_STORAGE = Build.VERSION.SDK_INT <= 29;
27-
public static int BUILD_VERSION = 3160;
28-
public static String BUILD_VERSION_STRING = "9.4.7";
27+
public static int BUILD_VERSION = 3161;
28+
public static String BUILD_VERSION_STRING = "9.4.8";
2929
public static int APP_ID = 4;
3030
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";
3131

‎TMessagesProj/src/main/java/org/telegram/ui/ActionBar/ActionBarLayout.java

+8-6
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ public boolean addFragmentToStack(BaseFragment fragment, int position) {
15031503
return false;
15041504
}
15051505
fragment.setParentLayout(this);
1506-
if (position == -1) {
1506+
if (position == -1 || position == INavigationLayout.FORCE_NOT_ATTACH_VIEW) {
15071507
if (!fragmentsStack.isEmpty()) {
15081508
BaseFragment previousFragment = fragmentsStack.get(fragmentsStack.size() - 1);
15091509
previousFragment.onPause();
@@ -1522,11 +1522,13 @@ public boolean addFragmentToStack(BaseFragment fragment, int position) {
15221522
}
15231523
}
15241524
fragmentsStack.add(fragment);
1525-
attachView(fragment);
1526-
fragment.onResume();
1527-
fragment.onTransitionAnimationEnd(false, true);
1528-
fragment.onTransitionAnimationEnd(true, true);
1529-
fragment.onBecomeFullyVisible();
1525+
if (position != INavigationLayout.FORCE_NOT_ATTACH_VIEW) {
1526+
attachView(fragment);
1527+
fragment.onResume();
1528+
fragment.onTransitionAnimationEnd(false, true);
1529+
fragment.onTransitionAnimationEnd(true, true);
1530+
fragment.onBecomeFullyVisible();
1531+
}
15301532
onFragmentStackChanged("addFragmentToStack " + position);
15311533
} else {
15321534
fragmentsStack.add(position, fragment);

‎TMessagesProj/src/main/java/org/telegram/ui/ActionBar/INavigationLayout.java

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
public interface INavigationLayout {
2121
int REBUILD_FLAG_REBUILD_LAST = 1, REBUILD_FLAG_REBUILD_ONLY_LAST = 2;
2222

23+
int FORCE_NOT_ATTACH_VIEW = -2;
24+
2325
boolean presentFragment(NavigationParams params);
2426
boolean checkTransitionAnimation();
2527
boolean addFragmentToStack(BaseFragment fragment, int position);

‎TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -2947,7 +2947,7 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
29472947
if (AndroidUtilities.isTablet()) {
29482948
if (!UserConfig.getInstance(currentAccount).isClientActivated()) {
29492949
if (layersActionBarLayout.getFragmentStack().isEmpty()) {
2950-
layersActionBarLayout.addFragmentToStack(getClientNotActivatedFragment());
2950+
layersActionBarLayout.addFragmentToStack(getClientNotActivatedFragment(), INavigationLayout.FORCE_NOT_ATTACH_VIEW);
29512951
drawerLayoutContainer.setAllowOpenDrawer(false, false);
29522952
}
29532953
} else {
@@ -2957,29 +2957,27 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
29572957
if (searchQuery != null) {
29582958
dialogsActivity.setInitialSearchString(searchQuery);
29592959
}
2960-
actionBarLayout.addFragmentToStack(dialogsActivity);
2960+
actionBarLayout.addFragmentToStack(dialogsActivity, INavigationLayout.FORCE_NOT_ATTACH_VIEW);
29612961
drawerLayoutContainer.setAllowOpenDrawer(true, false);
29622962
}
29632963
}
29642964
} else {
29652965
if (actionBarLayout.getFragmentStack().isEmpty()) {
29662966
if (!UserConfig.getInstance(currentAccount).isClientActivated()) {
2967-
actionBarLayout.addFragmentToStack(getClientNotActivatedFragment());
2967+
actionBarLayout.addFragmentToStack(getClientNotActivatedFragment(), INavigationLayout.FORCE_NOT_ATTACH_VIEW);
29682968
drawerLayoutContainer.setAllowOpenDrawer(false, false);
29692969
} else {
29702970
DialogsActivity dialogsActivity = new DialogsActivity(null);
29712971
dialogsActivity.setSideMenu(sideMenu);
29722972
if (searchQuery != null) {
29732973
dialogsActivity.setInitialSearchString(searchQuery);
29742974
}
2975-
actionBarLayout.addFragmentToStack(dialogsActivity);
2975+
actionBarLayout.addFragmentToStack(dialogsActivity, INavigationLayout.FORCE_NOT_ATTACH_VIEW);
29762976
drawerLayoutContainer.setAllowOpenDrawer(true, false);
29772977
}
29782978
}
29792979
}
2980-
if (SharedConfig.useLNavigation) {
2981-
actionBarLayout.rebuildFragments(INavigationLayout.REBUILD_FLAG_REBUILD_LAST);
2982-
}
2980+
actionBarLayout.rebuildFragments(INavigationLayout.REBUILD_FLAG_REBUILD_LAST);
29832981
if (AndroidUtilities.isTablet()) {
29842982
layersActionBarLayout.rebuildFragments(INavigationLayout.REBUILD_FLAG_REBUILD_LAST);
29852983
rightActionBarLayout.rebuildFragments(INavigationLayout.REBUILD_FLAG_REBUILD_LAST);

‎gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1414
# org.gradle.parallel=true
1515
#Sat Mar 12 05:53:50 MSK 2016
16-
APP_VERSION_NAME=9.4.7
17-
APP_VERSION_CODE=3160
16+
APP_VERSION_NAME=9.4.8
17+
APP_VERSION_CODE=3161
1818
APP_PACKAGE=org.telegram.messenger
1919
RELEASE_KEY_PASSWORD=android
2020
RELEASE_KEY_ALIAS=androidkey

0 commit comments

Comments
 (0)