code cleanup
This commit is contained in:
parent
b49de6ddfb
commit
cd4b710bb7
4 changed files with 7 additions and 11 deletions
|
|
@ -115,7 +115,6 @@ public class SettingsUI extends SettingsTyping {
|
|||
}
|
||||
|
||||
public boolean isNumpadShapeLongSpace() { return getNumpadShape() == NUMPAD_SHAPE_LONG_SPACE; }
|
||||
public boolean isNumpadShapeSquare() { return getNumpadShape() == NUMPAD_SHAPE_SQUARE; }
|
||||
public boolean isNumpadShapeV() { return getNumpadShape() == NUMPAD_SHAPE_V; }
|
||||
|
||||
public int getSettingsFontSize() {
|
||||
|
|
|
|||
|
|
@ -75,13 +75,14 @@ abstract class BaseMainLayout {
|
|||
protected WindowInsets preventEdgeToEdge(@NonNull View v, @NonNull WindowInsets windowInsets) {
|
||||
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
|
||||
ViewGroup.MarginLayoutParams layout = (ViewGroup.MarginLayoutParams) v.getLayoutParams();
|
||||
if (layout != null) {
|
||||
layout.rightMargin = insets.right;
|
||||
layout.bottomMargin = insets.bottom;
|
||||
layout.leftMargin = insets.left;
|
||||
v.setLayoutParams(layout);
|
||||
if (layout == null) {
|
||||
return windowInsets;
|
||||
}
|
||||
|
||||
layout.rightMargin = insets.right;
|
||||
layout.bottomMargin = insets.bottom;
|
||||
layout.leftMargin = insets.left;
|
||||
v.setLayoutParams(layout);
|
||||
return WindowInsets.CONSUMED;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<TextView style="@style/TTheme.Numpad.Key.Overlay.Text.Hold" android:tag="overlay_hold_text" />
|
||||
</merge>
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
<io.github.sspanak.tt9.ui.main.keys.SoftKeyRF3
|
||||
style="@style/TTheme.Numpad.Key.Large"
|
||||
android:id="@+id/soft_key_rf3" />
|
||||
<include layout="@layout/key_overlay_icons" />
|
||||
<include layout="@layout/key_overlay_lf4" />
|
||||
</RelativeLayout>
|
||||
|
||||
<io.github.sspanak.tt9.ui.main.keys.SoftKeyOk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue