Permalink
Browse files

Lockscreen Targets: fix unlock and homescreen icons

if the user doesn't pick a custom icon in RomControl for these
two targets, the default ones were used, and they looked pretty
crappy. This replaces those with the proper icons, but only if
no custom icon was selected in RC

Change-Id: Id0b151270fc2d141393fdfd27ecd92ff053e71b0
Signed-off-by: Boris Bershadskiy <borisb13@gmail.com>
  • Loading branch information...
1 parent dedaf77 commit 629f0fab63a112fb5926f7679aaea8d7f5154b3c @borisb13 borisb13 committed Oct 21, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -465,6 +465,10 @@ public void updateResources() {
}else{
storedDraw.add(new TargetDrawable(res, res.getDrawable(R.drawable.ic_lockscreen_soundon)));
}
+ }else if(className.equals(HOMESCREEN_CMP) && front == null){
+ storedDraw.add(new TargetDrawable(res, res.getDrawable(R.drawable.ic_lockscreen_home)));
+ }else if(className.equals(UNLOCK_CMP) && front == null){
+ storedDraw.add(new TargetDrawable(res, res.getDrawable(R.drawable.ic_lockscreen_unlock)));
}else{
if (front == null || back == null) {
ActivityInfo aInfo = in.resolveActivityInfo(packMan, PackageManager.GET_ACTIVITIES);

0 comments on commit 629f0fa

Please sign in to comment.