@@ -2947,7 +2947,7 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
2947
2947
if (AndroidUtilities .isTablet ()) {
2948
2948
if (!UserConfig .getInstance (currentAccount ).isClientActivated ()) {
2949
2949
if (layersActionBarLayout .getFragmentStack ().isEmpty ()) {
2950
- layersActionBarLayout .addFragmentToStack (getClientNotActivatedFragment ());
2950
+ layersActionBarLayout .addFragmentToStack (getClientNotActivatedFragment (), INavigationLayout . FORCE_NOT_ATTACH_VIEW );
2951
2951
drawerLayoutContainer .setAllowOpenDrawer (false , false );
2952
2952
}
2953
2953
} else {
@@ -2957,29 +2957,27 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
2957
2957
if (searchQuery != null ) {
2958
2958
dialogsActivity .setInitialSearchString (searchQuery );
2959
2959
}
2960
- actionBarLayout .addFragmentToStack (dialogsActivity );
2960
+ actionBarLayout .addFragmentToStack (dialogsActivity , INavigationLayout . FORCE_NOT_ATTACH_VIEW );
2961
2961
drawerLayoutContainer .setAllowOpenDrawer (true , false );
2962
2962
}
2963
2963
}
2964
2964
} else {
2965
2965
if (actionBarLayout .getFragmentStack ().isEmpty ()) {
2966
2966
if (!UserConfig .getInstance (currentAccount ).isClientActivated ()) {
2967
- actionBarLayout .addFragmentToStack (getClientNotActivatedFragment ());
2967
+ actionBarLayout .addFragmentToStack (getClientNotActivatedFragment (), INavigationLayout . FORCE_NOT_ATTACH_VIEW );
2968
2968
drawerLayoutContainer .setAllowOpenDrawer (false , false );
2969
2969
} else {
2970
2970
DialogsActivity dialogsActivity = new DialogsActivity (null );
2971
2971
dialogsActivity .setSideMenu (sideMenu );
2972
2972
if (searchQuery != null ) {
2973
2973
dialogsActivity .setInitialSearchString (searchQuery );
2974
2974
}
2975
- actionBarLayout .addFragmentToStack (dialogsActivity );
2975
+ actionBarLayout .addFragmentToStack (dialogsActivity , INavigationLayout . FORCE_NOT_ATTACH_VIEW );
2976
2976
drawerLayoutContainer .setAllowOpenDrawer (true , false );
2977
2977
}
2978
2978
}
2979
2979
}
2980
- if (SharedConfig .useLNavigation ) {
2981
- actionBarLayout .rebuildFragments (INavigationLayout .REBUILD_FLAG_REBUILD_LAST );
2982
- }
2980
+ actionBarLayout .rebuildFragments (INavigationLayout .REBUILD_FLAG_REBUILD_LAST );
2983
2981
if (AndroidUtilities .isTablet ()) {
2984
2982
layersActionBarLayout .rebuildFragments (INavigationLayout .REBUILD_FLAG_REBUILD_LAST );
2985
2983
rightActionBarLayout .rebuildFragments (INavigationLayout .REBUILD_FLAG_REBUILD_LAST );
0 commit comments