Sunday, 18 October 2015

Info 2 how to toggle button burst button to btn_toggles_normal on notification pulldo



Info 2 how to toggle button burst button to btn_toggles_normal on notification pulldown?
Hello guys.. all things and functionality works applying spacecakers buttonburst mod except... if i toggle button burst button, so now it displays btn_tg or open face of quickpanel and if i close notification panel since recently button burst was toggled to open when i pull down the notification again, it still shows btn_tg or open face and logically its bug....

How to add or reinitialize button burst image to normal when i close or open notification panel.....
Heres how it looks:
Before I toggle button burst -----> When I toggle button burst -----> I close the notification 1st & when i reopen notification panel BUG on button burst image


it shud be normal face or initial face but since no method is handling to reinitialize button image on close notify panel or open notify panel... how to add this code from buttonburst.smali

code taken from buttonburst.smali

.prologue
.line 34
const v2, 0xffffff

invoke-virtual {p0, v2}, Lcom/spacecaker/ButtonBurst;->setBackgroundColor(I)V

.line 35
iget-object v2, p0, Lcom/spacecaker/ButtonBurst;->mContext:Landroid/content/Context;

invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v2

const v3, 0x7f03017e ---------> this is the correct register already for button normal compared to my public.xml

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v1

.line 36
.local v1, "on":Landroid/graphics/drawable/Drawable;

.line 40
invoke-virtual {p0, v1}, Lcom/spacecaker/ButtonBurst;->setBackgroundDrawable(Landroid/graphics/drawable/DrawableV



Theres so many methods inside my phonestatusbar.smali and tried adding it in this method but i got a force close...
.method private makeExpandedVisible(Z)V

more methods
.method private notifyUiVisibilityChanged()V
.method public animateCollapse(IF)V
.method public animateExpand()V
.method protected getExpandedViewMaxHeight()I
.method performExpand()V
.method protected updateNotificationIcons()V
and so many more im confused where to add the code to reinitialize button burst button image to normal on notify expand or notify close...


Or anyone knows how to edit and open systemui java code in eclipse.... have no idea... it wud be much easier for me to edit things if smali is in java code...


Attached is my working PhoneStatusBar.smali and ButtonBurst.smali














Attached Files






File Type: 7z smali.7z -
[Click for QR Code]
(24.4 KB)







No comments:

Post a Comment