//private final boolean edge_to_edge_mode = false; // whether running always in edge-to-edge mode
//private final boolean edge_to_edge_mode = true; // whether running always in edge-to-edge mode
privatefinalbooleanedge_to_edge_mode=Build.VERSION.SDK_INT>=Build.VERSION_CODES.VANILLA_ICE_CREAM;// whether running always in edge-to-edge mode
privatebooleanwant_no_limits;// whether we want to run with FLAG_LAYOUT_NO_LIMITS
privatebooleanset_window_insets_listener;// whether we've enabled a setOnApplyWindowInsetsListener()
privateintnavigation_gap;// gap for navigation bar along bottom (portrait) or right (landscape)
@@ -268,6 +269,7 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
activity_count++;
if(MyDebug.LOG)
Log.d(TAG,"activity_count: "+activity_count);
//EdgeToEdge.enable(this, SystemBarStyle.auto(Color.TRANSPARENT, Color.TRANSPARENT), SystemBarStyle.dark(Color.TRANSPARENT)); // test edge-to-edge on pre-Android 15
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
@@ -1568,6 +1570,11 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
// Note that we do it here rather than customising the theme's android:windowBackground, so this doesn't affect other views - in particular, the MyPreferenceFragment settings