Explicit Nullbility in Launcher (Part 2)

This CL updates the nullabality on methods associated with IconCache in Launcher.

Bug: 242895652
Test: manual
Change-Id: I4832c0950141c8a52c8a9e62659ccabb082897c8
This commit is contained in:
Pinyao Ting
2022-08-19 10:53:40 -07:00
parent 211496e3d8
commit 023b973d15
8 changed files with 63 additions and 27 deletions

View File

@@ -29,7 +29,6 @@ import android.os.UserHandle;
import android.os.UserManager;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.android.launcher3.LauncherSettings;
@@ -55,6 +54,7 @@ public class AppInfo extends ItemInfoWithIcon implements WorkspaceItemFactory {
*/
public Intent intent;
@NonNull
public ComponentName componentName;
// Section name used for indexing.
@@ -151,7 +151,7 @@ public class AppInfo extends ItemInfoWithIcon implements WorkspaceItemFactory {
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
}
@Nullable
@NonNull
@Override
public ComponentName getTargetComponent() {
return componentName;