mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-24 03:03:28 +01:00
Use custom action bar view for setup/compose
This commit is contained in:
@@ -48,6 +48,8 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
|
||||
setContentView(R.layout.activity_compose);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setCustomView(R.layout.action_bar);
|
||||
getSupportActionBar().setDisplayShowCustomEnabled(true);
|
||||
|
||||
getSupportFragmentManager().addOnBackStackChangedListener(this);
|
||||
|
||||
|
||||
@@ -151,6 +151,8 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
setContentView(view);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setCustomView(R.layout.action_bar);
|
||||
getSupportActionBar().setDisplayShowCustomEnabled(true);
|
||||
|
||||
drawerLayout = findViewById(R.id.drawer_layout);
|
||||
drawerLayout.setScrimColor(Helper.resolveColor(this, R.attr.colorDrawerScrim));
|
||||
|
||||
Reference in New Issue
Block a user