mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Enabled up nav
This commit is contained in:
parent
4432e35678
commit
1edba761c7
8 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,7 @@ public class ActivityAMP extends ActivityBase {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setIcon(R.drawable.twotone_bolt_24);
|
||||
getSupportActionBar().setSubtitle("AMP");
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ public class ActivityDSN extends ActivityBase {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle("DSN");
|
||||
setContentView(R.layout.activity_dsn);
|
||||
|
||||
|
|
|
@ -108,6 +108,7 @@ public class ActivityEML extends ActivityBase {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle("EML");
|
||||
|
||||
View view = LayoutInflater.from(this).inflate(R.layout.activity_eml, null);
|
||||
|
|
|
@ -44,6 +44,7 @@ public class ActivityError extends ActivityBase {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle(getString(R.string.title_setup_error));
|
||||
setContentView(R.layout.activity_error);
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ public class ActivitySignature extends ActivityBase {
|
|||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean monospaced = prefs.getBoolean("monospaced", false);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle(getString(R.string.title_edit_signature));
|
||||
|
||||
LayoutInflater inflater = LayoutInflater.from(this);
|
||||
|
|
|
@ -82,6 +82,7 @@ public class ActivityWidget extends ActivityBase {
|
|||
int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT);
|
||||
int layout = prefs.getInt("widget." + appWidgetId + ".layout", 1 /* new */);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle(R.string.title_widget_title_count);
|
||||
setContentView(R.layout.activity_widget);
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ public class ActivityWidgetSync extends ActivityBase {
|
|||
boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi", true);
|
||||
int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle(R.string.title_widget_title_sync);
|
||||
setContentView(R.layout.activity_widget_sync);
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
|||
boolean refresh = prefs.getBoolean("widget." + appWidgetId + ".refresh", false);
|
||||
boolean compose = prefs.getBoolean("widget." + appWidgetId + ".compose", false);
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
getSupportActionBar().setSubtitle(R.string.title_widget_title_list);
|
||||
setContentView(R.layout.activity_widget_unified);
|
||||
|
||||
|
|
Loading…
Reference in a new issue