Remove obsolete optimization
Change-Id: I2d43c009c62a7f4a4a2e0a6303bdfa692c4b8c8c
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 5f8c75a..0dc58a2 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -10128,8 +10128,7 @@
@ViewDebug.ExportedProperty(category = "drawing")
public boolean isOpaque() {
return (mPrivateFlags & OPAQUE_MASK) == OPAQUE_MASK &&
- ((mTransformationInfo != null ? mTransformationInfo.mAlpha : 1)
- >= 1.0f - ViewConfiguration.ALPHA_THRESHOLD);
+ ((mTransformationInfo != null ? mTransformationInfo.mAlpha : 1.0f) >= 1.0f);
}
/**
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java
index 823befb..107f1cc 100644
--- a/core/java/android/view/ViewConfiguration.java
+++ b/core/java/android/view/ViewConfiguration.java
@@ -30,24 +30,6 @@
*/
public class ViewConfiguration {
/**
- * Expected bit depth of the display panel.
- *
- * @hide
- */
- public static final float PANEL_BIT_DEPTH = 24;
-
- /**
- * Minimum alpha required for a view to draw.
- *
- * @hide
- */
- public static final float ALPHA_THRESHOLD = 0.5f / PANEL_BIT_DEPTH;
- /**
- * @hide
- */
- public static final float ALPHA_THRESHOLD_INT = 0x7f / PANEL_BIT_DEPTH;
-
- /**
* Defines the width of the horizontal scrollbar and the height of the vertical scrollbar in
* dips
*/