diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/WimaxButton.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/WimaxButton.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/WimaxButton.java b/packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/WimaxButton.java index 43e6a5b..a68f7a3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/WimaxButton.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/WimaxButton.java @@ -105,8 +105,8 @@ public class WimaxButton extends PowerButton { public WimaxButton() { mType = BUTTON_WIMAX; } @Override - protected void updateState() { - mState = sWimaxState.getTriState(mView.getContext()); + protected void updateState(Context context) { + mState = sWimaxState.getTriState(context); switch (mState) { case STATE_DISABLED: mIcon = R.drawable.stat_wimax_off; @@ -130,16 +130,16 @@ public class WimaxButton extends PowerButton { } @Override - protected void toggleState() { - sWimaxState.toggleState(mView.getContext()); + protected void toggleState(Context context) { + sWimaxState.toggleState(context); } @Override - protected boolean handleLongClick() { + protected boolean handleLongClick(Context context) { Intent intent = new Intent("android.settings.WIMAX_SETTINGS"); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - mView.getContext().startActivity(intent); + context.startActivity(intent); return true; } |