use layout animations only if they are enabled in the system

This commit is contained in:
tibbi
2021-11-13 09:16:24 +01:00
parent aeda036910
commit 832f9ac1d7
3 changed files with 6 additions and 3 deletions

View File

@@ -159,7 +159,10 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
}.apply {
recordings_list.adapter = this
}
recordings_list.scheduleLayoutAnimation()
if (context.areSystemAnimationsEnabled) {
recordings_list.scheduleLayoutAnimation()
}
} else {
adapter.updateItems(recordings)
}

View File

@@ -22,7 +22,7 @@
<!-- FAQ -->
<string name="faq_1_title">Podo agochar a icona da notificación mentres estou gravando?</string>
<string name="faq_1_text">Ben, depende. Mentres uses o teu dispositivo, non será posible agochar enteiramente as notificacións como as deste aplicativo. Se revisas os axustes deste elemento, o aplicativo intentará agochalo. Si que o podes agochar da pantalla de bloqueo, se o desactivas o amosador das notificacións sensibles nos axustes do teu dispositivo.
<string name="faq_1_text">Ben, depende. Mentres uses o teu dispositivo, non será posible agochar enteiramente as notificacións como as deste aplicativo. Se revisas os axustes deste elemento, o aplicativo intentará agochalo. Si que o podes agochar da pantalla de bloqueo, se o desactivas o amosador das notificacións sensibles nos axustes do teu dispositivo.</string>
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->