mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-07 09:00:04 -06:00
feat: android 15 support (#1048)
This commit is contained in:
committed by
GitHub
parent
1d6c1e48db
commit
ca4b026f11
@@ -12,13 +12,13 @@ plugins {
|
||||
val appPackageId = "com.yogeshpaliyal.keypass"
|
||||
|
||||
android {
|
||||
compileSdk = 34
|
||||
compileSdk = 35
|
||||
|
||||
defaultConfig {
|
||||
|
||||
applicationId = appPackageId
|
||||
minSdk = 23
|
||||
targetSdk = 34
|
||||
targetSdk = 35
|
||||
versionCode = 1432
|
||||
versionName = "1.4.32"
|
||||
|
||||
|
||||
@@ -5,8 +5,10 @@ import android.view.WindowManager
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.activity.compose.setContent
|
||||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.safeDrawingPadding
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.runtime.Composable
|
||||
@@ -69,6 +71,7 @@ class DashboardComposeActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
enableEdgeToEdge()
|
||||
if (BuildConfig.DEBUG.not()) {
|
||||
window.setFlags(
|
||||
WindowManager.LayoutParams.FLAG_SECURE,
|
||||
@@ -137,7 +140,7 @@ fun Dashboard() {
|
||||
|
||||
Scaffold(bottomBar = {
|
||||
KeyPassBottomBar()
|
||||
}) { paddingValues ->
|
||||
}, modifier = Modifier.safeDrawingPadding()) { paddingValues ->
|
||||
Surface(modifier = Modifier.padding(paddingValues)) {
|
||||
CurrentPage()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user