Merge "Return null from compat when resolveActivity returns null." into ub-now-nova
This commit is contained in:
@@ -110,8 +110,13 @@ public class LauncherAppsCompatVL extends LauncherAppsCompat {
|
||||
}
|
||||
|
||||
public LauncherActivityInfoCompat resolveActivity(Intent intent, UserHandleCompat user) {
|
||||
return new LauncherActivityInfoCompatVL(ReflectUtils.invokeMethod(mLauncherApps,
|
||||
mResolveActivity, intent, user.getUser()));
|
||||
Object activity = ReflectUtils.invokeMethod(mLauncherApps, mResolveActivity,
|
||||
intent, user.getUser());
|
||||
if (activity != null) {
|
||||
return new LauncherActivityInfoCompatVL(activity);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void startActivityForProfile(ComponentName component, Rect sourceBounds,
|
||||
|
||||
Reference in New Issue
Block a user