Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 900debd6 authored by Mårten Kongstad's avatar Mårten Kongstad Committed by Todd Kennedy
Browse files

OverlayInfo API: fix @Nullable -> @NonNull

OverlayInfo#getTargetPackageName will never return null. Correct
@Nullable annotation to say @NonNull instead.

Fixes: 129853770
Test: builds, boots
Change-Id: I70a9634e4f7da99be5d9044a7884b9ad01a22fd8
parent c27b0785
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1462,7 +1462,7 @@ package android.content.om {
    method @Nullable public String getCategory();
    method @NonNull public String getPackageName();
    method @Nullable public String getTargetOverlayableName();
    method @Nullable public String getTargetPackageName();
    method @NonNull public String getTargetPackageName();
    method public int getUserId();
    method public boolean isEnabled();
    method public void writeToParcel(android.os.Parcel, int);
+1 −1
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ public final class OverlayInfo implements Parcelable {
     * @hide
     */
    @SystemApi
    @Nullable
    @NonNull
    public String getTargetPackageName() {
        return targetPackageName;
    }