blob: a367367157f3242b0fd03198614cc5ed12b97488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package com.android.systemui;
import android.service.dreams.DreamService;
import com.android.systemui.BeanBag.Board;
public class BeanBagDream extends DreamService {
private Board mBoard;
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
setInteractive(true);
setFullscreen(true);
mBoard = new Board(this, null);
setContentView(mBoard);
}
@Override
public void onDreamingStarted() {
super.onDreamingStarted();
mBoard.startAnimation();
}
@Override
public void onDreamingStopped() {
mBoard.stopAnimation();
super.onDreamingStopped();
}
}
|