Fix a null-pointer exception when using tablets.

This commit is contained in:
B. Petersen
2017-02-17 13:38:23 +01:00
parent 30585b8de4
commit e65aa19109
@@ -301,7 +301,10 @@ public class AccountSettingsActivity extends BaseFragment implements Notificatio
if( (int)args[0]==1 ) {
if( fromIntro ) {
presentFragment(new DialogsActivity(null), true);
((LaunchActivity)getParentActivity()).drawerLayoutContainer.setAllowOpenDrawer(true, false);
LaunchActivity la = ((LaunchActivity)getParentActivity());
if( la != null ) {
la.drawerLayoutContainer.setAllowOpenDrawer(true, false);
}
}
else {
finishFragment();