private void updateCustomBackgroundSummary() {
int resId;
String value = Settings.System.getString(getContentResolver(),
Settings.System.LOCKSCREEN_BACKGROUND);
if (value == null) {
resId = R.string.lockscreen_background_default_wallpaper;
mCustomBackground.setValueIndex(LOCKSCREEN_BACKGROUND_DEFAULT_WALLPAPER);
} else if (value.isEmpty()) {
resId = R.string.lockscreen_background_custom_image;
mCustomBackground.setValueIndex(LOCKSCREEN_BACKGROUND_CUSTOM_IMAGE);
}
mCustomBackground.setSummary(getResources().getString(resId));
}
이런 부분에서....
packages/apps/Settings/src/com/android/settings/cyanogenmod/LockscreenInterface.java:92: variable resId might not have been initialized
mCustomBackground.setSummary(getResources().getString(resId));
^
이러한 오류가 뜨는데 어디를 어떻게 수정해야하나요 ;;
cm10.1입니다(4.2.1)