Hi
i have been trying to modify the visibility of a brightness bar that was added 2 the notification area
but the problem is i cant find the proper smali code to call the layout i need 2 "select" to then be able to change its visibility
so im asking anyone with more know how, how that can be achieved
my layout/smali knowledge is still very limited to make such
what is in blue is the code added 2 phonestatusbar.smali to make the view attach to the notification area
my very poor attempt makes all of the notification area vanish...
now what i dont know is how can i make a method to recall that layout so i can then set its visibility
any smali/layout master around here to help me?
thanks to anyone that will read this and try to help and thanks for ur time
if more info is needed please just let me know and ill post it...
cheers
i have been trying to modify the visibility of a brightness bar that was added 2 the notification area
but the problem is i cant find the proper smali code to call the layout i need 2 "select" to then be able to change its visibility
so im asking anyone with more know how, how that can be achieved
my layout/smali knowledge is still very limited to make such
Code:
....
.line 383
const v6, 0x7f03001c
invoke-static {v0, v6, v11}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v5
check-cast v5, Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v5}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedView:Lcom/android/systemui/statusbar/phone/ExpandedView;
invoke-virtual {v6, v5, v11}, Lcom/android/systemui/statusbar/phone/ExpandedView;->addView(Landroid/view/View;I)V
const v6, 0x7f03001e
invoke-static {v0, v6, v11}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v5
check-cast v5, Lcom/android/systemui/statusbar/quickpanel/BrightnessSettingsView;
invoke-virtual {v5}, Lcom/android/systemui/statusbar/quickpanel/BrightnessSettingsView;->init()V
iget-object v6, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedView:Lcom/android/systemui/statusbar/phone/ExpandedView
invoke-virtual {v6, v5, v11}, Lcom/android/systemui/statusbar/phone/ExpandedView;->addView(Landroid/view/View;I)V;
....
Code:
...
.method private setBBarVisibility()V
.locals 8
.prologue
const/16 v6, 0x8
const/4 v5, 0x0
iget-object v0, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;
.line 280
.local v0, context:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
const v4, 0x7f03001e
invoke-static {v0, v4, v5}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v4
check-cast v4, Lcom/android/systemui/statusbar/quickpanel/BrightnessSettingsView;
invoke-virtual {v4}, Lcom/android/systemui/statusbar/quickpanel/BrightnessSettingsView;->init()V
.line 295
iget-object v4, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedView:Lcom/android/systemui/statusbar/phone/ExpandedView;
invoke-virtual {v4, v6}, Lcom/android/systemui/statusbar/phone/ExpandedView;->setVisibility(I)V
return-void
.end method
...
now what i dont know is how can i make a method to recall that layout so i can then set its visibility
any smali/layout master around here to help me?
thanks to anyone that will read this and try to help and thanks for ur time
if more info is needed please just let me know and ill post it...
cheers