blob: c5a7354777434cb63f1f4f8c1557559980e59d28 (
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
|
package com.android.systemui.statusbar;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.CompoundButton;
import com.android.systemui.statusbar.policy.AutoRotateController;
public class RotationToggle extends CompoundButton {
AutoRotateController mRotater;
public RotationToggle(Context context) {
super(context);
mRotater = new AutoRotateController(context, this);
setClickable(true);
}
public RotationToggle(Context context, AttributeSet attrs) {
super(context, attrs);
mRotater = new AutoRotateController(context, this);
setClickable(true);
}
public RotationToggle(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
mRotater = new AutoRotateController(context, this);
setClickable(true);
}
}
|