由于Settings中未提供boolean类型数据的接口,可通过int接口读取,如:
mDreamEnabledSetting = (Settings.Secure.getIntForUser(resolver, Settings.Secure.SCREENSAVER_ENABLED,
mDreamsEnabledByDefaultConfig ? 1 :0, UserHandle.USER_CURRENT) != 0);
由于Settings中未提供boolean类型数据的接口,可通过int接口读取,如:
mDreamEnabledSetting = (Settings.Secure.getIntForUser(resolver, Settings.Secure.SCREENSAVER_ENABLED,
mDreamsEnabledByDefaultConfig ? 1 :0, UserHandle.USER_CURRENT) != 0);