Removing static instances of UserManagerCompat and AppWidgetManager
> Changing the lifecycle to follow other static objects in Launcher > Removing compat interface and inlining everything to helpers Bug: 141376165 Change-Id: I82bd5db1969101de9a7eac77f32728d70195bb35
This commit is contained in:
1 parent
ebc50f3095
commit
337c81f664
43 files changed
+385
-579
No files matched your search
@@ -19,15 +19,14 @@ package com.android.launcher3.util;
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
import android.os.UserHandle;
|
||||
|
||||
import com.android.launcher3.LauncherAppState;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.compat.UserManagerCompat;
|
||||
import com.android.launcher3.icons.BitmapInfo;
|
||||
import com.android.launcher3.icons.GraphicsUtils;
|
||||
import com.android.launcher3.pm.UserCache;
|
||||
|
||||
/**
|
||||
* A wrapper around {@link ContentValues} with some utility methods.
|
||||
@@ -87,7 +86,7 @@ public class ContentWriter {
|
||||
}
|
||||
|
||||
public ContentWriter put(String key, UserHandle user) {
|
||||
return put(key, UserManagerCompat.getInstance(mContext).getSerialNumberForUser(user));
|
||||
return put(key, UserCache.INSTANCE.get(mContext).getSerialNumberForUser(user));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user