File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
java/com/adriantache/greatimagedownloader Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ class MainActivity : ComponentActivity() {
16
16
override fun onCreate (savedInstanceState : Bundle ? ) {
17
17
super .onCreate(savedInstanceState)
18
18
19
+ theme.applyStyle(R .style.OptOutEdgeToEdgeEnforcement , /* force */ false )
20
+
19
21
setContent {
20
22
GReatImageDownloaderTheme {
21
23
// A surface container using the 'background' color from the theme
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources >
3
+
4
+ <style name =" OptOutEdgeToEdgeEnforcement" >
5
+ <item name =" android:windowOptOutEdgeToEdgeEnforcement" >true</item >
6
+ </style >
7
+ </resources >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
-
4
3
<style name =" Theme.GReatImageDownloader" parent =" android:Theme.Material.Light.NoActionBar" />
5
- </resources >
4
+
5
+ <style name =" OptOutEdgeToEdgeEnforcement" >
6
+ <!-- android:windowOptOutEdgeToEdgeEnforcement
7
+ isn't supported before SDK 35. This empty
8
+ style enables programmatically opting-out. -->
9
+ </style >
10
+ </resources >
You can’t perform that action at this time.
0 commit comments