Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions android/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ follow [https://changelog.md/](https://changelog.md/) guidelines.

## [Unreleased]

## [55.1] - 2025-09-23

### FIXED

- Visual issues related to handling of insets in android versions without edge-to-edge support
(api level < 30).

## [55.1] - 2025-08-22

### FIXED
Expand Down
4 changes: 2 additions & 2 deletions android/apolloui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ android {
applicationId "io.muun.apollo"
minSdk 19
targetSdk 34
versionCode 1501
versionName "55.1"
versionCode 1502
versionName "55.2"

// Needed to make sure these classes are available in the main DEX file for API 19
// See: https://spin.atomicobject.com/2018/07/16/support-kitkat-multidex/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.Toast;
import androidx.annotation.CallSuper;
import androidx.annotation.LayoutRes;
Expand Down Expand Up @@ -214,6 +215,10 @@ protected void setWindowInsets() {

setStatusBarIconsColor();

if (!OS.supportsEdgeToEdge()) {
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
}

ViewCompat.setOnApplyWindowInsetsListener(
rootView,
(view, insets) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ object OS {
fun supportsActivityTransitions(): Boolean =
isAndroidLOrNewer()

/**
* Whether this OS has edge-to-edge support (insets), which was added in R-11-30.
*/
@JvmStatic
fun supportsEdgeToEdge(): Boolean =
isAndroidROrNewer()

// PRIVATE STUFF:

/**
Expand Down Expand Up @@ -185,6 +192,13 @@ object OS {
private fun isAndroidQOrNewer(): Boolean =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q

/**
* Whether this OS version is R-11-30 or newer.
*/
@ChecksSdkIntAtLeast(api = Build.VERSION_CODES.R)
private fun isAndroidROrNewer(): Boolean =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R

/**
* Whether this OS version is N-7-24 or newer.
*/
Expand Down