Refactoring

This commit is contained in:
M66B 2021-03-31 21:12:39 +02:00
parent 3fee21e446
commit 3dd398c03b
1 changed files with 7 additions and 3 deletions

View File

@ -3692,10 +3692,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
boolean hints = (viewType == AdapterMessage.ViewType.UNIFIED || viewType == AdapterMessage.ViewType.FOLDER);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean app_support = prefs.getBoolean("app_support", false);
boolean message_swipe = prefs.getBoolean("message_swipe", false);
boolean message_select = prefs.getBoolean("message_select", false);
boolean send_pending = prefs.getBoolean("send_pending", true);
grpHintSupport.setVisibility(prefs.getBoolean("app_support", false) || !hints ? View.GONE : View.VISIBLE);
grpHintSwipe.setVisibility(prefs.getBoolean("message_swipe", false) || !hints ? View.GONE : View.VISIBLE);
grpHintSelect.setVisibility(prefs.getBoolean("message_select", false) || !hints ? View.GONE : View.VISIBLE);
grpHintSupport.setVisibility(app_support || !hints ? View.GONE : View.VISIBLE);
grpHintSwipe.setVisibility(message_swipe || !hints ? View.GONE : View.VISIBLE);
grpHintSelect.setVisibility(message_select || !hints ? View.GONE : View.VISIBLE);
final DB db = DB.getInstance(getContext());