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 isNumpadShapeLongSpace() { return getNumpadShape() == NUMPAD_SHAPE_LONG_SPACE; }
|
||||||
public boolean isNumpadShapeSquare() { return getNumpadShape() == NUMPAD_SHAPE_SQUARE; }
|
|
||||||
public boolean isNumpadShapeV() { return getNumpadShape() == NUMPAD_SHAPE_V; }
|
public boolean isNumpadShapeV() { return getNumpadShape() == NUMPAD_SHAPE_V; }
|
||||||
|
|
||||||
public int getSettingsFontSize() {
|
public int getSettingsFontSize() {
|
||||||
|
|
|
||||||
|
|
@ -75,13 +75,14 @@ abstract class BaseMainLayout {
|
||||||
protected WindowInsets preventEdgeToEdge(@NonNull View v, @NonNull WindowInsets windowInsets) {
|
protected WindowInsets preventEdgeToEdge(@NonNull View v, @NonNull WindowInsets windowInsets) {
|
||||||
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
|
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
|
||||||
ViewGroup.MarginLayoutParams layout = (ViewGroup.MarginLayoutParams) v.getLayoutParams();
|
ViewGroup.MarginLayoutParams layout = (ViewGroup.MarginLayoutParams) v.getLayoutParams();
|
||||||
if (layout != null) {
|
if (layout == null) {
|
||||||
|
return windowInsets;
|
||||||
|
}
|
||||||
|
|
||||||
layout.rightMargin = insets.right;
|
layout.rightMargin = insets.right;
|
||||||
layout.bottomMargin = insets.bottom;
|
layout.bottomMargin = insets.bottom;
|
||||||
layout.leftMargin = insets.left;
|
layout.leftMargin = insets.left;
|
||||||
v.setLayoutParams(layout);
|
v.setLayoutParams(layout);
|
||||||
}
|
|
||||||
|
|
||||||
return WindowInsets.CONSUMED;
|
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
|
<io.github.sspanak.tt9.ui.main.keys.SoftKeyRF3
|
||||||
style="@style/TTheme.Numpad.Key.Large"
|
style="@style/TTheme.Numpad.Key.Large"
|
||||||
android:id="@+id/soft_key_rf3" />
|
android:id="@+id/soft_key_rf3" />
|
||||||
<include layout="@layout/key_overlay_icons" />
|
<include layout="@layout/key_overlay_lf4" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<io.github.sspanak.tt9.ui.main.keys.SoftKeyOk
|
<io.github.sspanak.tt9.ui.main.keys.SoftKeyOk
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue