{"push_id":689566486,"size":2,"distinct_size":2,"ref":"refs/heads/io-1.0","head":"609e609a9281090f5791770356522b1ce7993a70","before":"229a212a2b08524d2e152020c9c7c1382b676760","commits":[{"sha":"71dfb3c7fb52f7f054fc175b4efad3af42bde426","author":{"email":"7fb1af48ad3f9a487e1291e1f9cb0d9f90b4f222@htc.com","name":"louis_chang"},"message":"[ActivityManager] Finish the failed-to-pause activity\n\nSymptom:\nIn some scenario, the mPausingActivity may be replaced by other\nactivity. When previous activity paused, the completePausedLocked()\nwon't be invoked because it is no longer the mPausingActivity. If\nthe activity is also pending to finish, it would never be done\nbecause the activity kept in PAUSING state. Since the activity's\nwindow also remain visible and is above on Wallpaper, user would\nsee it when back to home.\n\nSolution:\nFinish the failed-to-pause activity if the activity is pending to\nfinish.\n\nA Real Case:\n(1) Screen turn off\n(2) The top activity T1 crashed\n(3) When finish activity T1, the next top activity T2 will be\n    scheduled to resume and pause (due to screen off).\n(4) The activity T2 is also set to finishing due to T1 crashed.\n(5) Before T2 paused and before paused timeout occurs, there has\n    a new process started which brings up the next top activity T3\n    to resume and pause. So the pausing activity is now replaced.\n(6) When activity T2 paused, it cannot completed the pause operation\n    T2 will remain in PAUSING and finishing state with its window\n    visible. The process won't be killed because the oomadj stays\n    at 1 (Visible).\n\nChange-Id: Ib10fded891b21c774b26a93071c717fa50516e22","distinct":true,"url":"https://api.github.com/repos/InfinitiveOS/frameworks_base/commits/71dfb3c7fb52f7f054fc175b4efad3af42bde426"},{"sha":"609e609a9281090f5791770356522b1ce7993a70","author":{"email":"c507351741ce2a434ac29edfd87bd091d4d314ea@gmail.com","name":"Jackeagle"},"message":"Merge \"[ActivityManager] Finish the failed-to-pause activity\" into io-1.0","distinct":true,"url":"https://api.github.com/repos/InfinitiveOS/frameworks_base/commits/609e609a9281090f5791770356522b1ce7993a70"}]}