ResolverActivity: Rename alwaysCheck to always.

alwaysCheck can mean something very different
("always check with the user") and has the opposite meaning. It's
also inconsistent with naming in the rest of the file which is
"always".

Test: make
Bug: N/A
Change-Id: I856ba34a5607d3bca9dee396c531a07699489a7f
This commit is contained in:
Narayan Kamath
2020-12-08 12:11:21 +00:00
parent b511492911
commit cfabf905a3

View File

@@ -1085,7 +1085,7 @@ public class ResolverActivity extends Activity implements
}
}
protected boolean onTargetSelected(TargetInfo target, boolean alwaysCheck) {
protected boolean onTargetSelected(TargetInfo target, boolean always) {
final ResolveInfo ri = target.getResolveInfo();
final Intent intent = target != null ? target.getResolvedIntent() : null;
@@ -1207,7 +1207,7 @@ public class ResolverActivity extends Activity implements
if (otherProfileMatch > bestMatch) bestMatch = otherProfileMatch;
}
if (alwaysCheck) {
if (always) {
final int userId = getUserId();
final PackageManager pm = getPackageManager();