Browse Source

Hide support message on resume

main
M66B 6 years ago
parent
commit
b4d73619cc
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      app/src/main/java/eu/faircode/email/FragmentMessages.java

+ 7
- 1
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -380,7 +380,6 @@ public class FragmentMessages extends FragmentEx {
super.onActivityCreated(savedInstanceState);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
grpSupport.setVisibility(prefs.getBoolean("pro", false) ? View.GONE : View.VISIBLE);
grpHintActions.setVisibility(prefs.getBoolean("message_actions", false) ? View.GONE : View.VISIBLE);
final DB db = DB.getInstance(getContext());
@ -601,6 +600,13 @@ public class FragmentMessages extends FragmentEx {
}.load(this, args);
}
@Override
public void onResume() {
super.onResume();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
grpSupport.setVisibility(prefs.getBoolean("pro", false) ? View.GONE : View.VISIBLE);
}
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.menu_list, menu);


Loading…
Cancel
Save