mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Don't cast class to MainActivity to show message (#7771)
We can do that using an event. This commit fixes one of the most prominent crashes on Google Play where we cast the OnlineFeedViewActivity to MainActivity.
This commit is contained in:
@ -76,6 +76,11 @@ public class MainActivityStarter {
|
||||
return this;
|
||||
}
|
||||
|
||||
public MainActivityStarter withClearTop() {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MainActivityStarter withFragmentArgs(String name, boolean value) {
|
||||
if (fragmentArgs == null) {
|
||||
fragmentArgs = new Bundle();
|
||||
|
||||
Reference in New Issue
Block a user