From f3fa1d5e7c6404a004cbeff5fb40a98e48ea0120 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Tue, 17 Sep 2024 19:16:39 +0200 Subject: [PATCH] revert hack introduced in #2835 --- .../securesms/ConversationActivity.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java b/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java index 10acc7e6b..e4a150f2f 100644 --- a/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/main/java/org/thoughtcrime/securesms/ConversationActivity.java @@ -35,7 +35,6 @@ import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; -import android.os.PowerManager; import android.os.Vibrator; import android.provider.Browser; import android.text.Editable; @@ -301,12 +300,6 @@ protected void onResume() { DcHelper.getNotificationCenter(this).updateVisibleChat(dcContext.getAccountId(), chatId); attachmentManager.onResume(); - - // action bar might be hidden by workaround in onStop() - ActionBar supportActionBar = getSupportActionBar(); - if (supportActionBar != null && !supportActionBar.isShowing()) { - supportActionBar.show(); - } } @Override @@ -322,23 +315,6 @@ protected void onPause() { AudioSlidePlayer.stopAll(); } - @Override - public void onStop() { - super.onStop(); - - // hack/workaround to fix https://github.com/deltachat/deltachat-android/issues/2798 - // the real cause of the problem is still unknown but hiding the action bar here fixes it - if ( Build.VERSION.SDK_INT >= 34) { - ActionBar supportActionBar = getSupportActionBar(); - if (supportActionBar != null && container.isKeyboardOpen()) { - PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); - if (!pm.isInteractive()) { - supportActionBar.hide(); - } - } - } - } - @Override public void onConfigurationChanged(Configuration newConfig) { Log.i(TAG, "onConfigurationChanged(" + newConfig.orientation + ")");