Daniel Sandler | 9ff6378 | 2012-05-03 23:16:42 -0400 | [diff] [blame^] | 1 | package com.android.systemui.statusbar; |
| 2 | |
| 3 | import android.content.Context; |
| 4 | import android.util.AttributeSet; |
| 5 | import android.widget.CompoundButton; |
| 6 | |
| 7 | import com.android.systemui.statusbar.policy.AutoRotateController; |
| 8 | |
| 9 | public 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 | } |