Merge "Only show filtered RecentLocationAccess apps" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
252a579657
@@ -25,6 +25,7 @@ import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.permission.PermissionManager;
|
||||
import android.text.format.DateUtils;
|
||||
import android.util.IconDrawableFactory;
|
||||
import android.util.Log;
|
||||
@@ -132,7 +133,8 @@ public class RecentLocationAccesses {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (showApp) {
|
||||
if (showApp && PermissionManager.shouldShowPackageForIndicatorCached(mContext,
|
||||
packageName)) {
|
||||
Access access = getAccessFromOps(now, ops);
|
||||
if (access != null) {
|
||||
accesses.add(access);
|
||||
|
||||
Reference in New Issue
Block a user