Skip to content

Commit

Permalink
fix press power key can't snooze when alarm notify
Browse files Browse the repository at this point in the history
Change-Id: I6504103c052ad83b2d7438fd26e8480e8f23b055
  • Loading branch information
yu88my committed Sep 29, 2012
1 parent 98c10fa commit 4f6e462
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10768,6 +10768,10 @@

iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPendingPowerKeyUpCanceled:Z

move-object/from16 v0, p0

invoke-direct {v0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->notifyPowerKeyUp()V

goto/16 :goto_f

.line 3992
Expand Down Expand Up @@ -16497,3 +16501,25 @@
0x7e6 -> :sswitch_16
.end sparse-switch
.end method

.method private notifyPowerKeyUp()V
.locals 3

.prologue
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

new-instance v1, Landroid/content/Intent;

const-string v2, "android.intent.action.KEYCODE_POWER_UP"

invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v0, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

:cond_0
return-void
.end method

0 comments on commit 4f6e462

Please sign in to comment.