mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Fail safe
This commit is contained in:
@@ -395,10 +395,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
|
||||
View getContentView() {
|
||||
return drawerLayout.getChildAt(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onSaveInstanceState(Bundle outState) {
|
||||
outState.putBoolean("fair:toggle", drawerToggle.isDrawerIndicatorEnabled());
|
||||
@@ -731,6 +727,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
View getContentView() {
|
||||
if (drawerLayout == null || drawerLayout.getChildCount() == 0)
|
||||
return null;
|
||||
return drawerLayout.getChildAt(0);
|
||||
}
|
||||
|
||||
private void checkFirst() {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
if (prefs.getBoolean("first", true))
|
||||
|
||||
Reference in New Issue
Block a user