OSDN Git Service

Fix animation video render issue when Settings->Moves is resumed from
authorDoris Ling <dling@google.com>
Tue, 23 Aug 2016 23:08:34 +0000 (16:08 -0700)
committerDoris Ling <dling@google.com>
Thu, 25 Aug 2016 01:02:49 +0000 (01:02 +0000)
commit465e92654275e532cfdd78cff3e7da64f46b5ea8
treed45a071c931a1a9e32f229816a94d6b94636fffe
parent1330f130d6252fc1a7f2a333f954fad1070a4809
Fix animation video render issue when Settings->Moves is resumed from
screen off.

Re-initialize the animation video if necessary when the preference is
visible to the user.

Fixes: 31023261

Test: manual -
1. Go to Settings -> Moves and verify that the animation video are
displayed correctly on load.
2. Press power button to turn screen off, then on again. Verify when
Moves settings resumes, the animation video is displayed correctly.
3. Repeat #2 above but let display time out instead of turning off
screen by power button.

Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993
(cherry picked from commit 008ba4ec402c6b223ff4126d9a180b3931a049ef)
src/com/android/settings/gestures/GesturePreference.java
src/com/android/settings/gestures/GestureSettings.java