Hi guys, hope you don't mind an N1 user popping in for a question.
I don't know if you could offer any help or not for what I'm trying to do. This thread consistently came up in my various searches and you're definitely making edits in the same area I'm trying to. I just checked, and it looks like miui has landed here, too so maybe you're familiar. I'm trying to hide % textView overlay for the battery. Just the text output, not the battery icon.
I'm not learned in smali (or java for that matter) so I'm starting off severely handicapped as it is...but I've been reading/searching, and I *think* this is the area where I need to edit. I'm not entirely sure, though, as their battery implementation is quite different. My thinking is to make the text transparent, that way I keep the slot it occupies as it. Do you think that's a valid approach?
As expected, the edit in the op works fine for hiding the battery, but as you know, I lose the slot. One thing I did notice was while the setIconVisibility edit hid the battery entirely, if you go into settings and switch battery types, it no longer has any effect and all battery versions return.
If you have some hints or other help, it's much appreciated. If not, that's OK and I understand. Don't know if it helps, but I've attached the StatusBarPolicy, and IconData files.
Thanks in advance.