Skip to content

During a watching video After clicking on the download button, the app crashes when I click on the back button #17

@friendsmobile

Description

@friendsmobile

Project Information

Expected behavior

The application should not crash when I click on the download button while watching a video and then click on the back button

Actual behavior

During a watching video After clicking on the download button, the app crashes when I click on the back button

How to reproduce

  • Download the app

  • Play any video

  • Click on the download button while watching a video

  • And then click on the back button

  • Note the BUG

  • Browser/App version: 3.1.1

  • Operating system: 6.0

Recording Of The Bug

20190601_030904

Logcat

E/AndroidRuntime(16429): FATAL EXCEPTION: main

E/AndroidRuntime(16429): Process: com.teocci.ytinbg, PID: 16429

E/AndroidRuntime(16429): java.lang.RuntimeException: Unable to resume activity {com.teocci.ytinbg/com.teocci.ytinbg.ui.MainActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

E/AndroidRuntime(16429): 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3409)

E/AndroidRuntime(16429): 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3440)

E/AndroidRuntime(16429): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474)

E/AndroidRuntime(16429): 	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(16429): 	at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime(16429): 	at android.app.ActivityThread.main(ActivityThread.java:5910)

E/AndroidRuntime(16429): 	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(16429): 	at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(16429): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)

E/AndroidRuntime(16429): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

E/AndroidRuntime(16429): Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

E/AndroidRuntime(16429): 	at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:2053)

E/AndroidRuntime(16429): 	at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:2079)

E/AndroidRuntime(16429): 	at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:678)

E/AndroidRuntime(16429): 	at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:632)

E/AndroidRuntime(16429): 	at com.teocci.ytinbg.ui.MainActivity.onResume(MainActivity.java:241)

E/AndroidRuntime(16429): 	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)

E/AndroidRuntime(16429): 	at android.app.Activity.performResume(Activity.java:6297)

E/AndroidRuntime(16429): 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3398)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions