summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2011-01-10 22:03:53 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2011-01-10 22:03:53 (GMT)
commit68e055945e6278d9ccde1997b5dafbfdfdf14dd5 (patch)
treed18dd1ebf8b3261b03be5cb9c9f21e827e1239e8 /src
parent92394b58029f924c5e15f488020ce31a8e793b81 (diff)
downloadSoftKeys-68e055945e6278d9ccde1997b5dafbfdfdf14dd5.zip
SoftKeys-68e055945e6278d9ccde1997b5dafbfdfdf14dd5.tar.gz
SoftKeys-68e055945e6278d9ccde1997b5dafbfdfdf14dd5.tar.bz2
Fix transparency bug
Diffstat (limited to 'src')
-rw-r--r--src/net/hoopajoo/android/SoftKeys/SoftKeysService.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
index 4c9b265..fa23127 100644
--- a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
+++ b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java
@@ -354,10 +354,10 @@ public class SoftKeysService extends Service {
// extra view (dpad, customizable buttons)
mExtraView = l.inflate( R.layout.service_extra, null );
- Generator.applyContainerExtras( mExtraView, "service_extra",
+ Generator.applyContainerExtras( mExtraView.findViewById( R.id.button_container ), "service_extra",
Generator.currentTheme( this ),
Generator.scaledIconSize( this, 0, buttonMult ) );
-
+
mExtraView.setOnTouchListener( touch );
OnLongClickListener configButtons = new OnLongClickListener() {
@@ -427,10 +427,7 @@ public class SoftKeysService extends Service {
break;
}
}
- mNumRows = settings.getInt( "service_extra_num_custom", 0 );
- mExtraEnabled = settings.getBoolean( "service_extra_enabled", false );
- updateExtraRows();
-
+
// update the button configs, they are simply mapped by id in to a hashmap
int i = 0;
for( int id : new int[] {
@@ -460,8 +457,13 @@ public class SoftKeysService extends Service {
((Button)mExtraView.findViewById( id )).setText( keyname );
mCustomKeys.put( id, keycode );
}
+
applyTransparency( mExtraView, settings.getInt( "service_extra_transparency", 0 ) );
-
+
+ mNumRows = settings.getInt( "service_extra_num_custom", 0 );
+ mExtraEnabled = settings.getBoolean( "service_extra_enabled", false );
+ updateExtraRows();
+
// hide stuff
toggleBar();
@@ -669,9 +671,11 @@ public class SoftKeysService extends Service {
WindowManager wm = (WindowManager)getSystemService(WINDOW_SERVICE);
wm.removeView( mView );
wm.removeView( mBumpView );
+ wm.removeView( mExtraView );
mView = null;
mBumpView = null;
+ mExtraView = null;
mOrientationListener.disable();
}