Skip to content

Commit

Permalink
prevented unnecessary multiple insets recalculations and possible inp…
Browse files Browse the repository at this point in the history
…ut modes re-evaluations, when a virtual numpad key is pressed on Android 15
  • Loading branch information
sspanak committed Nov 29, 2024
1 parent 1eb478a commit cf27604
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public View onCreateInputView() {
@Override
public void onComputeInsets(Insets outInsets) {
super.onComputeInsets(outInsets);
if (shouldBeVisible() && settings.clearInsets()) {
if (settings.clearInsets() && shouldBeVisible()) {
// otherwise the MainView wouldn't show up on Sonim XP3900
// or it expands the application window past the edge of the screen
outInsets.contentTopInsets = 0;
Expand Down

0 comments on commit cf27604

Please sign in to comment.