Skip to content

Commit 5fad8d4

Browse files
committed
feat!: enable edge to edge
1 parent cf80dd9 commit 5fad8d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commons/src/main/kotlin/org/fossify/commons/activities/BaseSimpleActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import androidx.core.app.ActivityCompat
3939
import androidx.core.net.toUri
4040
import androidx.core.util.Pair
4141
import androidx.core.view.ScrollingView
42+
import androidx.core.view.WindowCompat
4243
import androidx.core.view.WindowInsetsCompat
4344
import androidx.core.view.get
4445
import androidx.core.view.size
@@ -198,6 +199,8 @@ abstract class BaseSimpleActivity : AppCompatActivity() {
198199
}
199200

200201
super.onCreate(savedInstanceState)
202+
WindowCompat.enableEdgeToEdge(window)
203+
201204
if (!packageName.startsWith("org.fossify.", true)) {
202205
if ((0..50).random() == 10 || baseConfig.appRunCount % 100 == 0) {
203206
val label = "You are using a fake version of the app. For your own safety download the original one from www.fossify.org. Thanks"

0 commit comments

Comments
 (0)