Skip to content

Commit

Permalink
feat(split tunneling): update SplitTunnelingViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Dec 6, 2023
1 parent daa3b81 commit 72bbb35
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ protected List<ApplicationItem> doInBackground(Void... voids) {
for (ApplicationInfo info : applicationInfoList) {
try {
if (PackageManager.PERMISSION_GRANTED == packageManager.checkPermission(Manifest.permission.INTERNET, info.packageName)) {
if (null != packageManager.getLaunchIntentForPackage(info.packageName) ||
if ((null != packageManager.getLaunchIntentForPackage(info.packageName) ||
null != packageManager.getLeanbackLaunchIntentForPackage(info.packageName) ||
null != packageManager.getInstallerPackageName(info.packageName)
null != packageManager.getInstallerPackageName(info.packageName) &&
(info.flags & ApplicationInfo.FLAG_SYSTEM) == 0)
) {
if (packageNames.add(info.loadLabel(packageManager).toString())) {
items.add(new ApplicationItem(info.loadLabel(packageManager).toString(), info.packageName,
Expand Down

0 comments on commit 72bbb35

Please sign in to comment.