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

Commit d4eb10a8 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

TIF: resolve SecurityException on loadCustomLabel().

Bug: 17001118
Change-Id: I357ac2506562c028116c3e4f6dd611ef2b744d28
parent e9054ab3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ public final class TvInputInfo implements Parcelable {
     */
    @SystemApi
    public boolean isHidden(Context context) {
        return TvInputSettings.isHidden(context, mId, UserHandle.USER_CURRENT);
        return TvInputSettings.isHidden(context, mId, UserHandle.myUserId());
    }

    /**
@@ -434,7 +434,7 @@ public final class TvInputInfo implements Parcelable {
     */
    @SystemApi
    public CharSequence loadCustomLabel(Context context) {
        return TvInputSettings.getCustomLabel(context, mId, UserHandle.USER_CURRENT);
        return TvInputSettings.getCustomLabel(context, mId, UserHandle.myUserId());
    }

    /**