remember "show advanced tabs" setting

Closes #669
This commit is contained in:
Vincent Breitmoser
2014-08-31 00:39:37 +02:00
parent a73abf57f1
commit 38c6cf045c
3 changed files with 18 additions and 4 deletions

View File

@@ -135,6 +135,16 @@ public class Preferences {
editor.commit();
}
public boolean getShowAdvancedTabs() {
return mSharedPreferences.getBoolean(Pref.SHOW_ADVANCED_TABS, false);
}
public void setShowAdvancedTabs(boolean value) {
SharedPreferences.Editor editor = mSharedPreferences.edit();
editor.putBoolean(Pref.SHOW_ADVANCED_TABS, value);
editor.commit();
}
public boolean getCachedConsolidate() {
return mSharedPreferences.getBoolean(Pref.CACHED_CONSOLIDATE, false);
}