Skip to content

Commit

Permalink
app stays the same, but edgetoedge handling is not compatible with An…
Browse files Browse the repository at this point in the history
…droid 15
  • Loading branch information
imbissbudenaesthetik committed Dec 20, 2024
1 parent 49153ff commit 7d114f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

<activity
android:name=".ui.MainActivity"
android:windowSoftInputMode="adjustResize"
android:allowTaskReparenting="true"
android:exported="true">
<intent-filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package de.seemoo.at_tracking_detection.ui

import android.content.SharedPreferences
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavOptions
import androidx.navigation.findNavController
Expand Down Expand Up @@ -34,6 +35,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
lateinit var backgroundWorkScheduler: BackgroundWorkScheduler

override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)

sharedPreferences.registerOnSharedPreferenceChangeListener(this)
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:fitsSystemWindows="true"
>

<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/main_nav_view"
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/fragment_dashboard_risk.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:bind="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".ui.dashboard.DashboardRiskFragment">

<data>

<variable
name="vm"
type="de.seemoo.at_tracking_detection.ui.dashboard.RiskCardViewModel" />
Expand Down

0 comments on commit 7d114f3

Please sign in to comment.