am 68cff8c1: Merge "Beans in space." into jb-mr1-dev
* commit '68cff8c117b18136de8f652782b364fc48f25a84': Beans in space.
This commit is contained in:
@@ -179,5 +179,17 @@
|
||||
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- Beans in space -->
|
||||
<service
|
||||
android:name=".BeanBagDream"
|
||||
android:exported="true"
|
||||
android:label="Beans in space">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.DREAM" />
|
||||
</intent-filter>
|
||||
</service>
|
||||
</application>
|
||||
</manifest>
|
||||
|
||||
31
packages/SystemUI/src/com/android/systemui/BeanBagDream.java
Normal file
31
packages/SystemUI/src/com/android/systemui/BeanBagDream.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package com.android.systemui;
|
||||
|
||||
import android.service.dreams.Dream;
|
||||
|
||||
import com.android.systemui.BeanBag.Board;
|
||||
|
||||
public class BeanBagDream extends Dream {
|
||||
|
||||
private Board mBoard;
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
setInteractive(true);
|
||||
mBoard = new Board(this, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
setContentView(mBoard);
|
||||
lightsOut();
|
||||
mBoard.startAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish() {
|
||||
mBoard.stopAnimation();
|
||||
super.finish();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user