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
@@ -29,7 +29,7 @@ import android.util.Log;
|
||||
|
||||
import com.android.launcher3.LauncherSettings.Favorites;
|
||||
import com.android.launcher3.LauncherSettings.Settings;
|
||||
import com.android.launcher3.compat.UserManagerCompat;
|
||||
import com.android.launcher3.pm.UserCache;
|
||||
|
||||
/**
|
||||
* Helper class to backup and restore Favorites table into a separate table
|
||||
@@ -94,7 +94,7 @@ public class GridBackupTable {
|
||||
}
|
||||
|
||||
private void copyTable(String from, String to) {
|
||||
long userSerial = UserManagerCompat.getInstance(mContext).getSerialNumberForUser(
|
||||
long userSerial = UserCache.INSTANCE.get(mContext).getSerialNumberForUser(
|
||||
Process.myUserHandle());
|
||||
dropTable(mDb, to);
|
||||
Favorites.addTableToDb(mDb, userSerial, false, to);
|
||||
|
||||
Reference in new issue
Block a user