Fix ek-x appearance after reseed screen is applied

This commit is contained in:
Wisest_wizard 2021-08-07 13:11:42 +05:30 committed by Wisest_wizard
parent 1d6f0a2b91
commit cf51f719d1
2 changed files with 22 additions and 14 deletions

View File

@ -64,11 +64,6 @@ public class AdditionalKeyboardView extends HorizontalScrollView implements View
setVisibility(View.GONE); setVisibility(View.GONE);
return; return;
} }
if (preferences.getBoolean("Reseed", true)) {
if (getVisibility() != View.GONE)
setVisibility(View.GONE);
return;
}
Rect r = new Rect(); Rect r = new Rect();
getWindowVisibleDisplayFrame(r); getWindowVisibleDisplayFrame(r);

View File

@ -1,20 +1,33 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:id="@+id/relative">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/frame">
<SurfaceView <SurfaceView
android:id="@+id/lorieView" android:id="@+id/lorieView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"/>
</FrameLayout>
<com.termux.x11.AdditionalKeyboardView <com.termux.x11.AdditionalKeyboardView
android:id="@+id/additionalKbd" android:id="@+id/additionalKbd"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:layout_below="@+id/frame"
android:layout_alignBottom="@id/relative"/>
<!-- Without this view AdditionalKeyboard view sometimes dissapear --> <!-- Without this view AdditionalKeyboard view sometimes dissapear -->
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent"
</FrameLayout> android:layout_below="@+id/frame"
android:layout_alignBottom="@id/relative"/>
</RelativeLayout>