summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/notificationlight/ApplicationLightPreference.java
diff options
context:
space:
mode:
authorDvTonder <david.vantonder@gmail.com>2013-01-05 09:14:14 -0500
committerDvTonder <david.vantonder@gmail.com>2013-01-05 09:14:14 -0500
commit527f17f73f76feee76f50d022c7b7629d288e312 (patch)
tree73889017ffca6641f52f229bccff31b013c127ec /src/com/android/settings/notificationlight/ApplicationLightPreference.java
parentf8c9fbcb214f6881ddb6ac02fa5ae45518828be7 (diff)
downloadpackages_apps_settings-527f17f73f76feee76f50d022c7b7629d288e312.zip
packages_apps_settings-527f17f73f76feee76f50d022c7b7629d288e312.tar.gz
packages_apps_settings-527f17f73f76feee76f50d022c7b7629d288e312.tar.bz2
Settings: Fix color picker ComposeShader view
The shader was not showing the proper combined gradients. This is a limitation of the ComposeShader in Android 3+ and has to do with the hardware acceleration as described here: 'ComposeShader can only contain shaders of differenttypes (a BitmapShader and a LinearGradient for instance, but not two instances of BitmapShader)'. But, 'If your application is affected by any of these missing features or limitations, you can turn off hardware acceleration for just the affected portion of your application by calling: setLayerType(View.LAYER_TYPE_SOFTWARE, null).' Change-Id: I8d945e37ed97c409a0cc7e9ec5570019545f0f68
Diffstat (limited to 'src/com/android/settings/notificationlight/ApplicationLightPreference.java')
-rw-r--r--src/com/android/settings/notificationlight/ApplicationLightPreference.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/com/android/settings/notificationlight/ApplicationLightPreference.java b/src/com/android/settings/notificationlight/ApplicationLightPreference.java
index d88eaf9..f76b0fd 100644
--- a/src/com/android/settings/notificationlight/ApplicationLightPreference.java
+++ b/src/com/android/settings/notificationlight/ApplicationLightPreference.java
@@ -34,11 +34,9 @@ import android.view.View.OnLongClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
-import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import com.android.settings.R;
-import com.android.settings.Utils;
public class ApplicationLightPreference extends Preference implements
View.OnClickListener {