mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Removing all dependencies of launcher code on wallpaper-picker
> WallpaperPicker can still depend on launcher code, but not the other way round. Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
This commit is contained in:
@@ -70,6 +70,7 @@ import com.android.launcher3.compat.PackageInstallerCompat;
|
||||
import com.android.launcher3.compat.PackageInstallerCompat.PackageInstallInfo;
|
||||
import com.android.launcher3.compat.UserHandleCompat;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
import com.android.launcher3.util.WallpaperUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -1315,10 +1316,10 @@ public class Workspace extends SmoothPagedView
|
||||
protected void setWallpaperDimension() {
|
||||
new AsyncTask<Void, Void, Void>() {
|
||||
public Void doInBackground(Void ... args) {
|
||||
String spKey = WallpaperCropActivity.getSharedPreferencesKey();
|
||||
String spKey = LauncherFiles.WALLPAPER_CROP_PREFERENCES_KEY;
|
||||
SharedPreferences sp =
|
||||
mLauncher.getSharedPreferences(spKey, Context.MODE_MULTI_PROCESS);
|
||||
LauncherWallpaperPickerActivity.suggestWallpaperDimension(mLauncher.getResources(),
|
||||
WallpaperUtils.suggestWallpaperDimension(mLauncher.getResources(),
|
||||
sp, mLauncher.getWindowManager(), mWallpaperManager,
|
||||
mLauncher.overrideWallpaperDimensions());
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user