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

Commit 60d47601 authored by shubang's avatar shubang
Browse files

TIAF: fix TvIAppView and TIAMS bugs

Bug: 212188318
Bug: 212183051
Test: mmm
Change-Id: Ide3c4c963003cd4879d52ac1ae8a96fb24d25754
parent fca5e3a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ public class TvIAppView extends ViewGroup {
    }

    public TvIAppView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, /* attrs = */null, /* defStyleAttr = */0);
        super(context, attrs, defStyleAttr);
        int sourceResId = Resources.getAttributeSetSourceResId(attrs);
        if (sourceResId != Resources.ID_NULL) {
            Log.d(TAG, "Build local AttributeSet");
@@ -127,7 +127,7 @@ public class TvIAppView extends ViewGroup {
        }
        mDefStyleAttr = defStyleAttr;
        resetSurfaceView();
        mTvIAppManager = (TvIAppManager) getContext().getSystemService("tv_interactive_app");
        mTvIAppManager = (TvIAppManager) getContext().getSystemService(Context.TV_IAPP_SERVICE);
    }

    /**
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ public class TvIAppManagerService extends SystemService {
            }
            iAppState.mInfo = info;
            iAppState.mUid = getIAppUid(info);
            iAppState.mComponentName = info.getComponent();
            iAppMap.put(iAppServiceId, iAppState);
            iAppState.mIAppNumber = count;
        }