Advertisement
dunc001

updateSettings

Apr 18th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. .method protected updateSettings()V
  2. .locals 6
  3.  
  4. const/4 v5, 0x1
  5.  
  6. const/4 v4, 0x0
  7.  
  8. invoke-super {p0}, Lcom/android/systemui/statusbar/policy/Clock;->updateSettings()V
  9.  
  10. iget-object v2, p0, Lcom/android/systemui/statusbar/policy/Clock;->mContext:Landroid/content/Context;
  11.  
  12. invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
  13.  
  14. move-result-object v1
  15.  
  16. const-string v2, "tweaks_clock_style"
  17.  
  18. invoke-static {v1, v2, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
  19.  
  20. move-result v2
  21.  
  22. const/4 v3, 0x2
  23.  
  24. if-ne v2, v3, :cond_0
  25.  
  26. move v0, v5
  27.  
  28. :goto_0
  29. if-eqz v0, :cond_1
  30.  
  31. invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/CenterClock;->setVisibility(I)V
  32.  
  33. :goto_1
  34. return-void
  35.  
  36. :cond_0
  37. move v0, v4
  38.  
  39. goto :goto_0
  40.  
  41. :cond_1
  42. const/16 v2, 0x8
  43.  
  44. invoke-virtual {p0, v2}, Lcom/android/systemui/statusbar/policy/CenterClock;->setVisibility(I)V
  45.  
  46. goto :goto_1
  47. .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement