1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Refactoring

This commit is contained in:
M66B 2021-03-31 11:04:50 +02:00
parent 37660e8de0
commit 16a2f7f6e9

View file

@ -258,8 +258,11 @@ public class FragmentFolders extends FragmentBase {
super.onActivityCreated(savedInstanceState);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
grpHintActions.setVisibility(prefs.getBoolean("folder_actions", false) ? View.GONE : View.VISIBLE);
grpHintSync.setVisibility(prefs.getBoolean("folder_sync", false) ? View.GONE : View.VISIBLE);
boolean folder_actions = prefs.getBoolean("folder_actions", false);
boolean folder_sync = prefs.getBoolean("folder_sync", false);
grpHintActions.setVisibility(folder_actions ? View.GONE : View.VISIBLE);
grpHintSync.setVisibility(folder_sync ? View.GONE : View.VISIBLE);
DB db = DB.getInstance(getContext());