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

Commit da0f6573 authored by Mark Harman's avatar Mark Harman
Browse files

Define importantForAccessibility in xml rather than programmatically.

parent f55fcd5b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -277,12 +277,6 @@ public class MainActivity extends Activity {
        // determine whether we support Camera2 API
        initCamera2Support();

        if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN ) {
            // no point having talkback care about this - and (hopefully) avoid Google Play pre-launch accessibility warnings
            View container = findViewById(R.id.hide_container);
            container.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
        }

        // set up window flags for normal operation
        setWindowFlagsForCamera();
        if( MyDebug.LOG )
+1 −0
Original line number Diff line number Diff line
@@ -630,6 +630,7 @@
        android:layout_height="match_parent"
        android:background="@android:color/black"
        android:visibility="gone"
        android:importantForAccessibility="no"
        />
    
</RelativeLayout>