本文整理汇总了Java中com.fsck.k9.preferences.GlobalSettings类的典型用法代码示例。如果您正苦于以下问题:Java GlobalSettings类的具体用法?Java GlobalSettings怎么用?Java GlobalSettings使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GlobalSettings类属于com.fsck.k9.preferences包,在下文中一共展示了GlobalSettings类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadMessageViewContentPercent
import com.fsck.k9.preferences.GlobalSettings; //导入依赖的package包/类
private void loadMessageViewContentPercent(Storage storage) {
int fallbackValue = 100;
if (!storage.contains(MESSAGE_VIEW_CONTENT_PERCENT)) {
int oldValue = storage.getInt(MESSAGE_VIEW_CONTENT, 3);
fallbackValue = GlobalSettings.SettingsUpgraderV31.convertFromOldSize(oldValue);
}
setMessageViewContentAsPercent(storage.getInt(MESSAGE_VIEW_CONTENT_PERCENT, fallbackValue));
}
示例2: loadMessageViewContentPercent
import com.fsck.k9.preferences.GlobalSettings; //导入依赖的package包/类
private void loadMessageViewContentPercent(SharedPreferences prefs) {
int fallbackValue = 100;
if (!prefs.contains(MESSAGE_VIEW_CONTENT_PERCENT)) {
int oldValue = prefs.getInt(MESSAGE_VIEW_CONTENT, 3);
fallbackValue = GlobalSettings.SettingsUpgraderV31.convertFromOldSize(oldValue);
}
setMessageViewContentAsPercent(prefs.getInt(MESSAGE_VIEW_CONTENT_PERCENT, fallbackValue));
}