Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,386 Members 38,580 Now Online
XDA Developers Android and Mobile Development Forum

[Advice] DSB color choosing logic.

Tip us?
 
Bonerock
Old
#1  
Bonerock's Avatar
Junior Member - OP
Thanks Meter 5
Posts: 20
Join Date: Jul 2014
Location: Montevideo
Default [Advice] DSB color choosing logic.

I'm not a programmer or anything but i have an idea that can improve the performance after the DSB update.
I experience some lag on my Nexus 7 (Flo) every time it scans for the color.
What if were only needed to scan once for every app and then be saved on a file? Every time you use an app since that moment, the engine would search in that file instead of having to scan again.

Btw, thanks for your work and sorry for my English.
 
Bmatthews11
Old
#2  
Member
Thanks Meter 6
Posts: 63
Join Date: Nov 2011
Location: Alplaus
But then in apps whose action bar changes color or is hidden ie: Google Newsstand, the color would just stay the same.
 
naveenmat98
Old
#3  
Junior Member
Thanks Meter 5
Posts: 14
Join Date: May 2014
Default Suggestion :)

Quote:
Originally Posted by Bmatthews11 View Post
But then in apps whose action bar changes color or is hidden ie: Google Newsstand, the color would just stay the same.
you could have a system whereby the rom essentially learns which apps change color and which apps dont. So say you launch Facebook a couple of times and the color doesn't change, so the rom will write the color codes to a file for that app. And say you launch an app that changes color like Google Newsstand or Play Store a couple of times, the rom will learn not to write the color codes for the app to a file. It's important that the rom should remove saved color codes after updates and I suggest this can be done by pulling the date modified information and also, the rom should only write the colors after the 3rd or 4th launch so as to ensure everything is covered for. The ROM could also be shipped with like a color code file that automatically syncs with a file on PA servers so that the community can add colors for apps they use and all they have to do is launch the app and all requests to push color codes to that file have to go through a mod. Kind of like how the rom building process is now with gerrit and github except more lightweight I guess haha
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes