mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-08 19:44:09 +08:00
Use action mode overlay on pre-6.0 devices
This avoids the terminal content from being pushed down when starting text selection. The drawback is that one cannot select text at the top rows without scrolling - something to fix for the future.
This commit is contained in:
@@ -9,7 +9,10 @@
|
|||||||
|
|
||||||
<!-- Seen in buttons on left drawer: -->
|
<!-- Seen in buttons on left drawer: -->
|
||||||
<item name="android:colorAccent">#212121</item>
|
<item name="android:colorAccent">#212121</item>
|
||||||
<item name="android:alertDialogTheme">@style/TermuxAlertDialogStyle</item>
|
<item name="android:alertDialogTheme">@style/TermuxAlertDialogStyle</item>
|
||||||
|
<!-- Avoid action mode toolbar pushing down terminal content when
|
||||||
|
selecting text on pre-6.0 (non-floating toolbar). -->
|
||||||
|
<item name="android:windowActionModeOverlay">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TermuxAlertDialogStyle" parent="@android:style/Theme.Material.Light.Dialog.Alert">
|
<style name="TermuxAlertDialogStyle" parent="@android:style/Theme.Material.Light.Dialog.Alert">
|
||||||
|
Reference in New Issue
Block a user