From 598d1ba6eebf1b24d4063cb0f154dbec5906ca03 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 4 Mar 2020 16:51:09 +0100 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/FragmentBase.java | 7 ------- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 --- 2 files changed, 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentBase.java b/app/src/main/java/eu/faircode/email/FragmentBase.java index 89c05e100b..4a1c8ee3e5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentBase.java +++ b/app/src/main/java/eu/faircode/email/FragmentBase.java @@ -232,13 +232,6 @@ public class FragmentBase extends Fragment { View focused = getActivity().getCurrentFocus(); if (focused != null) im.hideSoftInputFromWindow(focused.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); - - AppCompatActivity activity = (AppCompatActivity) getActivity(); - if (activity != null) { - ActionBar actionBar = activity.getSupportActionBar(); - if (actionBar != null) - actionBar.show(); - } } @Override diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index a2ec66d0d1..220371d591 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -90,7 +90,6 @@ import android.widget.Toast; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AlertDialog; -import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.PopupMenu; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.Group; @@ -203,8 +202,6 @@ import static android.os.Process.THREAD_PRIORITY_BACKGROUND; import static android.text.format.DateUtils.DAY_IN_MILLIS; import static android.text.format.DateUtils.FORMAT_SHOW_DATE; import static android.text.format.DateUtils.FORMAT_SHOW_WEEKDAY; -import static androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE; -import static androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_SETTLING; import static org.openintents.openpgp.OpenPgpSignatureResult.RESULT_KEY_MISSING; import static org.openintents.openpgp.OpenPgpSignatureResult.RESULT_NO_SIGNATURE; import static org.openintents.openpgp.OpenPgpSignatureResult.RESULT_VALID_KEY_CONFIRMED;