blob: c5a7354777434cb63f1f4f8c1557559980e59d28 [file] [log] [blame]
Daniel Sandler9ff63782012-05-03 23:16:42 -04001package com.android.systemui.statusbar;
2
3import android.content.Context;
4import android.util.AttributeSet;
5import android.widget.CompoundButton;
6
7import com.android.systemui.statusbar.policy.AutoRotateController;
8
9public class RotationToggle extends CompoundButton {
10 AutoRotateController mRotater;
11
12 public RotationToggle(Context context) {
13 super(context);
14 mRotater = new AutoRotateController(context, this);
15 setClickable(true);
16 }
17
18 public RotationToggle(Context context, AttributeSet attrs) {
19 super(context, attrs);
20 mRotater = new AutoRotateController(context, this);
21 setClickable(true);
22 }
23
24 public RotationToggle(Context context, AttributeSet attrs, int defStyle) {
25 super(context, attrs, defStyle);
26 mRotater = new AutoRotateController(context, this);
27 setClickable(true);
28 }
29
30}