mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Showing alert dialog when shortcut version higher than the App
Creating an AlertDialog when the disabled reason of the shortcut is DISABLED_REASON_VERSION_LOWER, which happens when the backed-up shortcut was created from an application that has a version higher than the one installed on the device. The AlertDialog will direct the user to the play store and update the application. Test: Manual Fix: 224796975 Change-Id: I0125fada60b48176775de6782ba03ee6790904aa
This commit is contained in:
@@ -71,10 +71,6 @@ public abstract class ItemInfoWithIcon extends ItemInfo {
|
||||
*/
|
||||
public static final int FLAG_DISABLED_LOCKED_USER = 1 << 5;
|
||||
|
||||
public static final int FLAG_DISABLED_MASK = FLAG_DISABLED_SAFEMODE
|
||||
| FLAG_DISABLED_NOT_AVAILABLE | FLAG_DISABLED_SUSPENDED
|
||||
| FLAG_DISABLED_QUIET_USER | FLAG_DISABLED_BY_PUBLISHER | FLAG_DISABLED_LOCKED_USER;
|
||||
|
||||
/**
|
||||
* The item points to a system app.
|
||||
*/
|
||||
@@ -113,6 +109,16 @@ public abstract class ItemInfoWithIcon extends ItemInfo {
|
||||
public static final int FLAG_SHOW_DOWNLOAD_PROGRESS_MASK = FLAG_INSTALL_SESSION_ACTIVE
|
||||
| FLAG_INCREMENTAL_DOWNLOAD_ACTIVE;
|
||||
|
||||
/**
|
||||
* Indicates that the icon is a disabled shortcut and application updates are required.
|
||||
*/
|
||||
public static final int FLAG_DISABLED_VERSION_LOWER = 1 << 12;
|
||||
|
||||
public static final int FLAG_DISABLED_MASK = FLAG_DISABLED_SAFEMODE
|
||||
| FLAG_DISABLED_NOT_AVAILABLE | FLAG_DISABLED_SUSPENDED
|
||||
| FLAG_DISABLED_QUIET_USER | FLAG_DISABLED_BY_PUBLISHER | FLAG_DISABLED_LOCKED_USER
|
||||
| FLAG_DISABLED_VERSION_LOWER;
|
||||
|
||||
/**
|
||||
* Status associated with the system state of the underlying item. This is calculated every
|
||||
* time a new info is created and not persisted on the disk.
|
||||
|
||||
Reference in New Issue
Block a user