mirror of https://github.com/kurisufriend/Clover
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
806 B
25 lines
806 B
package org.floens.chan.utils;
|
|
|
|
import org.floens.chan.ChanApplication;
|
|
|
|
public class ChanPreferences {
|
|
public static boolean getOpenLinkConfirmation() {
|
|
return ChanApplication.getPreferences().getBoolean("preference_open_link_confirmation", true);
|
|
}
|
|
|
|
public static String getDefaultName() {
|
|
return ChanApplication.getPreferences().getString("preference_default_name", "");
|
|
}
|
|
|
|
public static String getDefaultEmail() {
|
|
return ChanApplication.getPreferences().getString("preference_default_email", "");
|
|
}
|
|
|
|
public static boolean getDeveloper() {
|
|
return ChanApplication.getPreferences().getBoolean("preference_developer", false);
|
|
}
|
|
|
|
public static void setDeveloper(boolean developer) {
|
|
ChanApplication.getPreferences().edit().putBoolean("preference_developer", developer).commit();
|
|
}
|
|
}
|
|
|