feat: Add option to clear home screen in settings (#6125)
Signed-off-by: abhixv <abhi.sharma1@hotmail.com>
This commit is contained in:
1 parent
9898749619
commit
5f3a03f4fb
1577 files changed
+112559
-80244
No files matched your search
@@ -68,7 +68,7 @@ import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.PackageItemInfo;
|
||||
import com.android.launcher3.pm.PinRequestHelper;
|
||||
import com.android.launcher3.util.ApiWrapper;
|
||||
import com.android.launcher3.util.ApplicationInfoWrapper;
|
||||
import com.android.launcher3.util.PackageManagerHelper;
|
||||
import com.android.launcher3.util.SystemUiController;
|
||||
import com.android.launcher3.views.AbstractSlideInView;
|
||||
import com.android.launcher3.views.BaseDragLayer;
|
||||
@@ -164,8 +164,8 @@ public class AddItemActivity extends BaseActivity
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
ApplicationInfo info = new ApplicationInfoWrapper(
|
||||
this, targetApp.packageName, targetApp.user).getInfo();
|
||||
ApplicationInfo info = PackageManagerHelper.INSTANCE.get(this)
|
||||
.getApplicationInfo(targetApp.packageName, targetApp.user, 0);
|
||||
if (info == null) {
|
||||
finish();
|
||||
return;
|
||||
@@ -281,7 +281,7 @@ public class AddItemActivity extends BaseActivity
|
||||
new PinShortcutRequestActivityInfo(mRequest, this);
|
||||
mWidgetCell.getWidgetView().setTag(new PendingAddShortcutInfo(shortcutInfo));
|
||||
applyWidgetItemAsync(
|
||||
() -> new WidgetItem(shortcutInfo, mApp.getIconCache()));
|
||||
() -> new WidgetItem(shortcutInfo, mApp.getIconCache(), getPackageManager()));
|
||||
return new PackageItemInfo(mRequest.getShortcutInfo().getPackage(),
|
||||
mRequest.getShortcutInfo().getUserHandle());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user