make auto theme the default
This commit is contained in:
@@ -150,7 +150,7 @@ public final class Constants {
|
|||||||
public static final String AUTO = "auto";
|
public static final String AUTO = "auto";
|
||||||
public static final String LIGHT = "light";
|
public static final String LIGHT = "light";
|
||||||
public static final String DARK = "dark";
|
public static final String DARK = "dark";
|
||||||
public static final String DEFAULT = Constants.Pref.Theme.LIGHT;
|
public static final String DEFAULT = Constants.Pref.Theme.AUTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class ProxyType {
|
public static final class ProxyType {
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import androidx.annotation.Nullable;
|
|||||||
import com.google.auto.value.AutoValue;
|
import com.google.auto.value.AutoValue;
|
||||||
import org.sufficientlysecure.keychain.Constants;
|
import org.sufficientlysecure.keychain.Constants;
|
||||||
import org.sufficientlysecure.keychain.Constants.Pref;
|
import org.sufficientlysecure.keychain.Constants.Pref;
|
||||||
|
import org.sufficientlysecure.keychain.Constants.Pref.Theme;
|
||||||
import org.sufficientlysecure.keychain.keyimport.HkpKeyserverAddress;
|
import org.sufficientlysecure.keychain.keyimport.HkpKeyserverAddress;
|
||||||
import timber.log.Timber;
|
import timber.log.Timber;
|
||||||
|
|
||||||
@@ -229,7 +230,7 @@ public class Preferences {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getTheme() {
|
public String getTheme() {
|
||||||
return mSharedPreferences.getString(Pref.THEME, Pref.Theme.LIGHT);
|
return mSharedPreferences.getString(Pref.THEME, Theme.DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTheme(String value) {
|
public void setTheme(String value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user