Commit bd427f8f authored by Amit Kumar's avatar Amit Kumar 💻

Don't add pending item for disabled packages

parent dadd5469
Pipeline #45904 passed with stage
in 4 minutes and 59 seconds
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<AndroidXmlCodeStyleSettings>
<option name="ARRANGEMENT_SETTINGS_MIGRATED_TO_191" value="true" />
</AndroidXmlCodeStyleSettings>
<JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
......
......@@ -301,7 +301,8 @@ public class AppProvider {
ApplicationItem applicationItem = mApplicationItems.get(databaseItem.id);
if (applicationItem == null) {
UserHandle userHandle = new UserHandle();
if (isAppOnSdcard(databaseItem.packageName, userHandle) || !isSdCardReady) {
if ((isAppOnSdcard(databaseItem.packageName, userHandle) || !isSdCardReady
) && !DISABLED_PACKAGES.contains(databaseItem.packageName)) {
Log.d(TAG, "Missing package: " + databaseItem.packageName);
Log.d(TAG, "Is App on Sdcard " + isAppOnSdcard(databaseItem.packageName, userHandle));
Log.d(TAG, "Is Sdcard ready " + isSdCardReady);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment