InstalledApp: Hide GooglePlay icon for webapps
* It appears that with recent chromium versions bookmarks became web based apps with an own package name and app icon, since those are detected as normal apps from Settings let's hide GooglePlay icon. Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
This commit is contained in:
@@ -446,7 +446,7 @@ public class AppInfoDashboardFragment extends DashboardFragment
|
||||
// Utils.isSystemPackage doesn't include all aosp built apps, like Contacts etc. Add them
|
||||
// and grab the Google Play Store itself (com.android.vending) in the process
|
||||
menu.findItem(PLAY_STORE).setVisible(!Utils.isSystemPackage(getContext().getResources(), mPm, mPackageInfo)
|
||||
&& !isAospOrStore(mAppEntry.info.packageName));
|
||||
&& isAppFromStore(mAppEntry.info.packageName));
|
||||
}
|
||||
|
||||
/** Shows the lock screen if the keyguard is secured. */
|
||||
@@ -657,8 +657,9 @@ public class AppInfoDashboardFragment extends DashboardFragment
|
||||
i.setData(Uri.parse(playURL));
|
||||
startActivity(i);
|
||||
}
|
||||
private boolean isAospOrStore(String packageName) {
|
||||
return packageName.contains("com.android");
|
||||
|
||||
private boolean isAppFromStore(String packageName) {
|
||||
return !packageName.contains("com.android") && !packageName.contains("org.chromium.webapk");
|
||||
}
|
||||
|
||||
private void uninstallPkg(String packageName, boolean allUsers, boolean andDisable) {
|
||||
|
||||
Reference in New Issue
Block a user