Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
GmsCore
Commits
c9d767dd
Commit
c9d767dd
authored
May 04, 2021
by
Fynn Godau
Committed by
Marvin W.
May 05, 2021
Browse files
Allow drawing RPIs fragment under system navbars
parent
9eb0adda
Changes
1
Hide whitespace changes
Inline
Side-by-side
play-services-nearby-core-ui/src/main/kotlin/org/microg/gms/nearby/core/ui/ExposureNotificationsRpisFragment.kt
View file @
c9d767dd
...
@@ -7,11 +7,14 @@ package org.microg.gms.nearby.core.ui
...
@@ -7,11 +7,14 @@ package org.microg.gms.nearby.core.ui
import
android.annotation.TargetApi
import
android.annotation.TargetApi
import
android.os.Bundle
import
android.os.Bundle
import
android.view.LayoutInflater
import
android.view.ViewGroup
import
androidx.appcompat.app.AlertDialog
import
androidx.appcompat.app.AlertDialog
import
androidx.lifecycle.lifecycleScope
import
androidx.lifecycle.lifecycleScope
import
androidx.preference.Preference
import
androidx.preference.Preference
import
androidx.preference.PreferenceCategory
import
androidx.preference.PreferenceCategory
import
androidx.preference.PreferenceFragmentCompat
import
androidx.preference.PreferenceFragmentCompat
import
androidx.recyclerview.widget.RecyclerView
import
org.microg.gms.nearby.exposurenotification.ExposureDatabase
import
org.microg.gms.nearby.exposurenotification.ExposureDatabase
@TargetApi
(
21
)
@TargetApi
(
21
)
...
@@ -21,6 +24,18 @@ class ExposureNotificationsRpisFragment : PreferenceFragmentCompat() {
...
@@ -21,6 +24,18 @@ class ExposureNotificationsRpisFragment : PreferenceFragmentCompat() {
private
lateinit
var
deleteAll
:
Preference
private
lateinit
var
deleteAll
:
Preference
private
lateinit
var
exportDb
:
Preference
private
lateinit
var
exportDb
:
Preference
override
fun
onCreateRecyclerView
(
inflater
:
LayoutInflater
?,
parent
:
ViewGroup
?,
savedInstanceState
:
Bundle
?
):
RecyclerView
{
return
super
.
onCreateRecyclerView
(
inflater
,
parent
,
savedInstanceState
).
apply
{
// Allow drawing under system navbar / status bar
fitsSystemWindows
=
true
clipToPadding
=
false
}
}
override
fun
onCreatePreferences
(
savedInstanceState
:
Bundle
?,
rootKey
:
String
?)
{
override
fun
onCreatePreferences
(
savedInstanceState
:
Bundle
?,
rootKey
:
String
?)
{
addPreferencesFromResource
(
R
.
xml
.
preferences_exposure_notifications_rpis
)
addPreferencesFromResource
(
R
.
xml
.
preferences_exposure_notifications_rpis
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment