Skip to content

Commit eedb679

Browse files
committed
Apollo: Release source code for 55.2 (1502)
1 parent 8bb32ac commit eedb679

4 files changed

Lines changed: 28 additions & 2 deletions

File tree

android/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

android/apolloui/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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/

android/apolloui/src/main/java/io/muun/apollo/presentation/ui/base/BaseActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import android.view.Menu;
4040
import android.view.MenuItem;
4141
import android.view.View;
42+
import android.view.WindowManager;
4243
import android.widget.Toast;
4344
import androidx.annotation.CallSuper;
4445
import 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) -> {

android/apolloui/src/main/java/io/muun/apollo/presentation/ui/utils/OS.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)