fix window insets related bugs (#4978)
- Fixes the background of the ComposeActivity in table mode which looked weird since https://github.com/tuskyapp/Tusky/pull/4897 - The ComposeActivity in tablet mode will now resize when the keyboard expands, the previously used fixed height would cause the bottom bar to hide entered text on some devices, closes https://github.com/tuskyapp/Tusky/issues/4973 - The bottom sheets in the compose view will now be in fully hidden state by default, as some weirdness on some devices caused them to peek over the bottom bar in half collapsed state. Please test @fin-w - The bottom sheet in the image viewer will now expand a bit more in edge-to-edge mode so it doesn't look it is deliberately obscured by the system bar. The image also moves up a bit so it won't be covered by the bottom sheet as much. - The "Performing lookup…" bottom sheet won't be covered by the nav bar anymore
This commit is contained in:
parent
3c728d9bea
commit
b03279a2e2
12 changed files with 103 additions and 62 deletions
|
|
@ -4,11 +4,9 @@
|
|||
<item name="android:windowBackground">@drawable/background_dialog_activity</item>
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
|
||||
<item name="android:windowSoftInputMode">stateAlwaysVisible|adjustResize</item>
|
||||
<item name="android:windowCloseOnTouchOutside">false</item>
|
||||
<item name="android:windowActionModeOverlay">true</item>
|
||||
<item name="android:windowMinWidthMajor">80%</item>
|
||||
<item name="android:windowMinWidthMinor">80%</item>
|
||||
</style>
|
||||
|
||||
<style name="TuskyDialogActivityBlackTheme" parent="@style/TuskyBlackTheme">
|
||||
|
|
@ -16,11 +14,9 @@
|
|||
<item name="android:windowBackground">@drawable/background_dialog_activity</item>
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
|
||||
<item name="android:windowSoftInputMode">stateAlwaysVisible|adjustResize</item>
|
||||
<item name="android:windowCloseOnTouchOutside">false</item>
|
||||
<item name="android:windowActionModeOverlay">true</item>
|
||||
<item name="android:windowMinWidthMajor">80%</item>
|
||||
<item name="android:windowMinWidthMinor">80%</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue