diff options
author | Daniel Sandler <dsandler@android.com> | 2012-10-03 23:04:50 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-10-04 23:38:15 -0400 |
commit | 2d78490292090eeab84694330978c9ad7fad2d37 (patch) | |
tree | 18e284c10ae397527c5844e1b07f6a0141083c2e /packages | |
parent | 09d1cb3fb1f8ccaa6c0298b04cfb515f273b0c08 (diff) | |
download | frameworks_base-2d78490292090eeab84694330978c9ad7fad2d37.zip frameworks_base-2d78490292090eeab84694330978c9ad7fad2d37.tar.gz frameworks_base-2d78490292090eeab84694330978c9ad7fad2d37.tar.bz2 |
DreamService API revisions.
Reduce reliance on Service interface overrides, instead
steering clients to the DreamService-specific lifecycle
hooks:
onAttachedToWindow .. onDreamingStarted ..
onDreamingStopped .. onDetachedFromWindow
The old Dream.java is finally gone now too.
Bug: 7281802
Change-Id: Ib7802c3397fde60ad1132fa49831da182eef4d7a
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/BeanBagDream.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/BeanBagDream.java b/packages/SystemUI/src/com/android/systemui/BeanBagDream.java index 3bb808f..a367367 100644 --- a/packages/SystemUI/src/com/android/systemui/BeanBagDream.java +++ b/packages/SystemUI/src/com/android/systemui/BeanBagDream.java @@ -9,23 +9,23 @@ public class BeanBagDream extends DreamService { private Board mBoard; @Override - public void onStart() { - super.onStart(); + public void onAttachedToWindow() { + super.onAttachedToWindow(); setInteractive(true); + setFullscreen(true); mBoard = new Board(this, null); + setContentView(mBoard); } @Override - public void onAttachedToWindow() { - super.onAttachedToWindow(); - setContentView(mBoard); - setFullscreen(true); + public void onDreamingStarted() { + super.onDreamingStarted(); mBoard.startAnimation(); } @Override - public void finish() { + public void onDreamingStopped() { mBoard.stopAnimation(); - super.finish(); + super.onDreamingStopped(); } } |