Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Conversation

@hossain-khan
Copy link
Owner

I suspect it's likely from the Flashbar library, however nobody has reported any leak issue to it https://github.com/aritraroy/Flashbar/issues
So, for now clearing Flashbar instance when it's re-created destroyed.

I suspect it's likely from the Flashbar library, however nobody has reported any leak issue to it https://github.com/aritraroy/Flashbar/issues
So, for now clearing Flashbar instance when it's re-created destroyed.
@hossain-khan hossain-khan merged commit 564d540 into master Apr 6, 2019
@hossain-khan hossain-khan deleted the 69-fix-activity-memory-leak branch April 6, 2019 11:47
hossain-khan added a commit that referenced this pull request Apr 6, 2019
```
2019-04-06 11:49:15.514 20635-20635/com.hossainkhan.android.constraintlayout E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.hossainkhan.android.constraintlayout, PID: 20635
    android.util.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:912)
        at android.content.ContextWrapper.startActivity(ContextWrapper.java:401)
        at androidx.core.content.ContextCompat.startActivity(ContextCompat.java:248)
        at androidx.browser.customtabs.CustomTabsIntent.launchUrl(CustomTabsIntent.java:263)
        at com.hossainkhan.android.demo.layoutpreview.LayoutPreviewBaseActivity.loadLayoutUrl(LayoutPreviewBaseActivity.kt:165)
        at com.hossainkhan.android.demo.layoutpreview.LayoutPreviewBaseActivity$showLayoutInfo$1.onActionTapped(LayoutPreviewBaseActivity.kt:135)
        at com.andrognito.flashbar.FlashbarView$setPositiveActionTapListener$1.onClick(FlashbarView.kt:329)
        at android.view.View.performClick(View.java:6597)
        at android.view.View.performClickInternal(View.java:6574)
        at android.view.View.access$3100(View.java:778)
        at android.view.View$PerformClick.run(View.java:25885)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants