Skip to content
Commit dafae2b3 authored by pioush.kumar-IN009423's avatar pioush.kumar-IN009423
Browse files

Pause is getting scheduled 2 times



Problem: {
    1. open sony liv app.
    2. Play any video.
    3. Press home. Observe app is going to PIP
    4. Now in logs we can see. am_pause_activity 2 times.
    5. erforming pause of activity that is not resumed: {com.jio.jioplay.tv/com.jio.jioplay.tv.activities.HomeActivity}
       02-21 23:47:01.705 18593 18593 E ActivityThread: java.lang.RuntimeException: Performing pause of activity that is not resumed: {com.jio.jioplay.tv/com.jio.jioplay.tv.activities.HomeActivity}
       02-21 23:47:01.705 18593 18593 E ActivityThread: 	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5342)
       02-21 23:47:01.705 18593 18593 E ActivityThread: 	at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5302)
       02-21 23:47:01.705 18593 18593 E ActivityThread: 	at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:53)
}

Solution: {
    1. Need to define a variable to signify is pauseScheduled. If it is scheduled then do not schedule again for PIP.
}

Bug: 271360298

Signed-off-by: default avatarpioush.kumar-IN009423 <pioush.kumar@oppo.com>
Change-Id: I033acec4e290875652196506f3c998d9f8c68f7f
Signed-off-by: default avatarpioush.kumar-IN009423 <pioush.kumar@oppo.com>
parent 5cd5d98e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment