Merge "Mark two test methods public so they can be mocked"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a27b2ca7c
@@ -69,14 +69,14 @@ public class ResolverListController {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
ResolveInfo getLastChosen() throws RemoteException {
|
||||
public ResolveInfo getLastChosen() throws RemoteException {
|
||||
return AppGlobals.getPackageManager().getLastChosenActivity(
|
||||
mTargetIntent, mTargetIntent.resolveTypeIfNeeded(mContext.getContentResolver()),
|
||||
PackageManager.MATCH_DEFAULT_ONLY);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void setLastChosen(Intent intent, IntentFilter filter, int match)
|
||||
public void setLastChosen(Intent intent, IntentFilter filter, int match)
|
||||
throws RemoteException {
|
||||
AppGlobals.getPackageManager().setLastChosenActivity(intent,
|
||||
intent.resolveType(mContext.getContentResolver()),
|
||||
|
||||
Reference in New Issue
Block a user