Notification improvements #1175

Merged
kekkyojin merged 3 commits from notification-improvements into master 2021-03-29 17:39:28 +02:00
Showing only changes of commit 96606f54fd - Show all commits

View file

@ -2781,12 +2781,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
} }
private Fragment getCurrentFragment() { private Fragment getCurrentFragment() {
List<Fragment> fragmentList = getSupportFragmentManager().getFragments(); return getSupportFragmentManager().findFragmentById(R.id.content_main);
if (fragmentList.size() > 0)
return fragmentList.get(fragmentList.size() - 1);
else
return null;
} }
public void hideActionBar() { public void hideActionBar() {