mt6735 设置自定义壁纸,在选择壁纸界面默认勾选壁纸不正确
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
设置自定义壁纸,在选择壁纸界面默认勾选壁纸不正确,不管选择何种壁纸,在选择壁纸界面都默认勾选了第一张。
[SOLUTION]
修改如下代码:
/alps/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/Wa
llpaperPickerActivity.java
将 init() 方法末尾的下述代码移除:
/// M: ALPS01663179, CLIck it at end of init.
if(!isTablet()){
if (mSelectedIndex >= 0 && mSelectedIndex <
mWallpapersView.getChildCount()) {
mThumbnailOnClickListener.onClick(
mWallpapersView.getChildAt(mSelectedIndex));
} else {
mThumbnailOnClickListener.onClick(
mWallpapersView.getChildAt(0));
}
}
/// M.
设置自定义壁纸,在选择壁纸界面默认勾选壁纸不正确,不管选择何种壁纸,在选择壁纸界面都默认勾选了第一张。
[SOLUTION]
修改如下代码:
/alps/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/Wa
llpaperPickerActivity.java
将 init() 方法末尾的下述代码移除:
/// M: ALPS01663179, CLIck it at end of init.
if(!isTablet()){
if (mSelectedIndex >= 0 && mSelectedIndex <
mWallpapersView.getChildCount()) {
mThumbnailOnClickListener.onClick(
mWallpapersView.getChildAt(mSelectedIndex));
} else {
mThumbnailOnClickListener.onClick(
mWallpapersView.getChildAt(0));
}
}
/// M.