diff --git a/app/src/main/java/io/lbry/browser/MainActivity.java b/app/src/main/java/io/lbry/browser/MainActivity.java index 50401579..1c11f762 100644 --- a/app/src/main/java/io/lbry/browser/MainActivity.java +++ b/app/src/main/java/io/lbry/browser/MainActivity.java @@ -2781,12 +2781,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener } private Fragment getCurrentFragment() { - List fragmentList = getSupportFragmentManager().getFragments(); - - if (fragmentList.size() > 0) - return fragmentList.get(fragmentList.size() - 1); - else - return null; + return getSupportFragmentManager().findFragmentById(R.id.content_main); } public void hideActionBar() {