You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK ... #11820
AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:1609)
at android.app.ContextImpl.startActivity(ContextImpl.java:1596)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:337)
at org.wordpress.android.ui.ActivityLauncher.openUrlExternal(ActivityLauncher.java:893)
at org.wordpress.android.ui.reader.ReaderActivityLauncher.openUrl(ReaderActivityLauncher.java:283)
at org.wordpress.android.util.URLFilteredWebViewClient.shouldOverrideUrlLoading(URLFilteredWebViewClient.java:73)
at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(PG:17)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java:null)
at android.os.MessageQueue.next(MessageQueue.java:143)
at android.os.Looper.loop(Looper.java:130)
...
(5 additional frame(s) were not displayed)
Tested on Lollipop emulator, it is 100% reproducible. Just added a link to be opened in an external browser in a post, previewed the post, clicked the link -> 💥.
Activity
ashiagr commentedon May 8, 2020
Tested on Lollipop emulator, it is 100% reproducible. Just added a link to be opened in an external browser in a post, previewed the post, clicked the link -> 💥.
99% occurrence is on OS below Android 6.
Also seems like FLAG_ACTIVITY_NEW_TASK requirement is now enforced: https://developer.android.com/about/versions/pie/android-9.0-changes-all#fant-required
bummytime commentedon May 8, 2020
💥 Thank you for looking at this @ashiagr !
peril-wordpress-mobile commentedon May 8, 2020
Generated by 🚫 dangerJS