File tree Expand file tree Collapse file tree
src/main/java/io/muun/apollo/presentation/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ follow [https://changelog.md/](https://changelog.md/) guidelines.
66
77## [ Unreleased]
88
9+ ## [ 55.1] - 2025-09-23
10+
11+ ### FIXED
12+
13+ - Visual issues related to handling of insets in android versions without edge-to-edge support
14+ (api level < 30).
15+
916## [ 55.1] - 2025-08-22
1017
1118### FIXED
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ android {
9898 applicationId " io.muun.apollo"
9999 minSdk 19
100100 targetSdk 34
101- versionCode 1501
102- versionName " 55.1 "
101+ versionCode 1502
102+ versionName " 55.2 "
103103
104104 // Needed to make sure these classes are available in the main DEX file for API 19
105105 // See: https://spin.atomicobject.com/2018/07/16/support-kitkat-multidex/
Original file line number Diff line number Diff line change 3939import android .view .Menu ;
4040import android .view .MenuItem ;
4141import android .view .View ;
42+ import android .view .WindowManager ;
4243import android .widget .Toast ;
4344import androidx .annotation .CallSuper ;
4445import androidx .annotation .LayoutRes ;
@@ -214,6 +215,10 @@ protected void setWindowInsets() {
214215
215216 setStatusBarIconsColor ();
216217
218+ if (!OS .supportsEdgeToEdge ()) {
219+ getWindow ().setSoftInputMode (WindowManager .LayoutParams .SOFT_INPUT_ADJUST_RESIZE );
220+ }
221+
217222 ViewCompat .setOnApplyWindowInsetsListener (
218223 rootView ,
219224 (view , insets ) -> {
Original file line number Diff line number Diff line change @@ -144,6 +144,13 @@ object OS {
144144 fun supportsActivityTransitions (): Boolean =
145145 isAndroidLOrNewer()
146146
147+ /* *
148+ * Whether this OS has edge-to-edge support (insets), which was added in R-11-30.
149+ */
150+ @JvmStatic
151+ fun supportsEdgeToEdge (): Boolean =
152+ isAndroidROrNewer()
153+
147154 // PRIVATE STUFF:
148155
149156 /* *
@@ -185,6 +192,13 @@ object OS {
185192 private fun isAndroidQOrNewer (): Boolean =
186193 Build .VERSION .SDK_INT >= Build .VERSION_CODES .Q
187194
195+ /* *
196+ * Whether this OS version is R-11-30 or newer.
197+ */
198+ @ChecksSdkIntAtLeast(api = Build .VERSION_CODES .R )
199+ private fun isAndroidROrNewer (): Boolean =
200+ Build .VERSION .SDK_INT >= Build .VERSION_CODES .R
201+
188202 /* *
189203 * Whether this OS version is N-7-24 or newer.
190204 */
You can’t perform that action at this time.
0 commit comments