Permalink
Browse files

GlobalActions: Fix themeing of the ShutdownThread

Apply the correct UI context so the reboot dialog is properly
themed

Change-Id: I115c81538ab9c27223b2090279f877d5b68d6dd3
  • Loading branch information...
1 parent 71632be commit 3ae2087388a72fefcb3240d653cd3f3bd700dc65 @rmcc rmcc committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 policy/src/com/android/internal/policy/impl/GlobalActions.java
View
2 policy/src/com/android/internal/policy/impl/GlobalActions.java
@@ -217,7 +217,7 @@ public boolean showBeforeProvisioning() {
mItems.add(
new SinglePressAction(com.android.internal.R.drawable.ic_lock_reboot, R.string.global_action_reboot) {
public void onPress() {
- ShutdownThread.reboot(mContext, "null", true);
+ ShutdownThread.reboot(getUiContext(), "null", true);
}
public boolean showDuringKeyguard() {

0 comments on commit 3ae2087

Please sign in to comment.