Refactoring

This commit is contained in:
M66B 2019-04-23 08:02:12 +02:00
parent 82a46f5555
commit 2d714f4ade
1 changed files with 2 additions and 3 deletions

View File

@ -150,6 +150,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private boolean preview; private boolean preview;
private boolean autohtml; private boolean autohtml;
private boolean autoimages; private boolean autoimages;
private boolean invert;
private boolean authentication; private boolean authentication;
private boolean debug; private boolean debug;
@ -1400,9 +1401,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
}; };
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean invert = prefs.getBoolean("invert", false);
if (dark && invert) { if (dark && invert) {
// https://bugs.chromium.org/p/chromium/issues/detail?id=578150 // https://bugs.chromium.org/p/chromium/issues/detail?id=578150
Paint paint = new Paint(); Paint paint = new Paint();
@ -3066,6 +3064,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.autohtml = prefs.getBoolean("autohtml", false); this.autohtml = prefs.getBoolean("autohtml", false);
this.autoimages = prefs.getBoolean("autoimages", false); this.autoimages = prefs.getBoolean("autoimages", false);
this.authentication = prefs.getBoolean("authentication", false); this.authentication = prefs.getBoolean("authentication", false);
this.invert = prefs.getBoolean("invert", false);
this.debug = prefs.getBoolean("debug", false); this.debug = prefs.getBoolean("debug", false);
this.textSize = Helper.getTextSize(context, zoom); this.textSize = Helper.getTextSize(context, zoom);