The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/oxr_android: Replace DisplayOverOtherAppsStatusFragment instead of adding

If we click button to enable DisplayOverOtherApps for monado, use
back button to com back to Launcher and hot-start monado app, the
disabled status fragment is not removed, and enabled status fraqgment is
added top on disabled status fragment, that causes text overlap.

This CL will use FragmentTransaction#replace instead of
FragmentTransaction#add to ensure there is only one
DisplayOverOtherAppsStatusFragment, and new status will replace old
status without any overlap.

Signed-off-by: utzcoz <utzcoz@outlook.com>

authored by

utzcoz and committed by
Jakob Bornecrantz
45f1de0c b6e8801e

+1 -1
+1 -1
src/xrt/targets/android_common/src/main/java/org/freedesktop/monado/android_common/AboutActivity.java
··· 82 82 if (!isInProcess) { 83 83 findViewById(R.id.drawOverOtherAppsFrame).setVisibility(View.VISIBLE); 84 84 DisplayOverOtherAppsStatusFragment drawOverFragment = new DisplayOverOtherAppsStatusFragment(); 85 - fragmentTransaction.add(R.id.drawOverOtherAppsFrame, drawOverFragment, null); 85 + fragmentTransaction.replace(R.id.drawOverOtherAppsFrame, drawOverFragment, null); 86 86 } 87 87 88 88 if (noticeFragmentProvider != null) {