yoyocx

Nembus ke Status Bar

Jan 15th, 2016
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. - Kode A
  2.  
  3. .line 55
  4. invoke-direct {p0}, Lcom/bbm/ui/activities/ViewProfileActivity;->SetTranslucent()V
  5.  
  6. - Kode B
  7.  
  8. .method private SetTranslucent()V
  9. .locals 2
  10.  
  11. .prologue
  12. .line 78
  13. sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
  14.  
  15. const/16 v1, 0x13
  16.  
  17. if-lt v0, v1, :cond_0
  18.  
  19. .line 79
  20. const/4 v0, 0x1
  21.  
  22. invoke-direct {p0, v0}, Lcom/bbm/ui/activities/ViewProfileActivity;->setTranslucentStatus(Z)V
  23.  
  24. .line 81
  25. :cond_0
  26. return-void
  27. .end method
  28.  
  29. .method private setTranslucentStatus(Z)V
  30. .locals 5
  31. .param p1, "on" # Z
  32. .annotation build Landroid/annotation/TargetApi;
  33. value = 0x13
  34. .end annotation
  35.  
  36. .prologue
  37. .line 187
  38. invoke-virtual {p0}, Lcom/bbm/ui/activities/ViewProfileActivity;->getWindow()Landroid/view/Window;
  39.  
  40. move-result-object v1
  41.  
  42. .line 188
  43. .local v1, "win":Landroid/view/Window;
  44. invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
  45.  
  46. move-result-object v2
  47.  
  48. .line 189
  49. .local v2, "winParams":Landroid/view/WindowManager$LayoutParams;
  50. const/high16 v0, 0x4000000
  51.  
  52. .line 190
  53. .local v0, "bits":I
  54. if-eqz p1, :cond_0
  55.  
  56. .line 191
  57. iget v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
  58.  
  59. const/high16 v4, 0x4000000
  60.  
  61. or-int/2addr v3, v4
  62.  
  63. iput v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
  64.  
  65. .line 195
  66. :goto_0
  67. invoke-virtual {v1, v2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V
  68.  
  69. .line 196
  70. return-void
  71.  
  72. .line 193
  73. :cond_0
  74. iget v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
  75.  
  76. const v4, -0x4000001
  77.  
  78. and-int/2addr v3, v4
  79.  
  80. iput v3, v2, Landroid/view/WindowManager$LayoutParams;->flags:I
  81.  
  82. goto :goto_0
  83. .end method
  84.  
  85.  
  86. ============================================================
  87.  
  88. 1. Copy Code B di bawah # direct methods
  89.  
  90. 2. Copy Code A di bawah ;->setContentView(I)V
Advertisement
Add Comment
Please, Sign In to add comment