diff options
author | Selim Cinek <cinek@google.com> | 2014-05-24 18:02:16 +0200 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2014-06-04 17:30:07 +0200 |
commit | 9c80964d3fa869111eb82aae70903d2fb85089cc (patch) | |
tree | e42de6022a1139fcc198c00134fe9cac7807249a /packages/SystemUI/src/com/android/systemui/statusbar/AlphaOptimizedView.java | |
parent | 5158d82340b6e222da1b9254c5b9667c600e002e (diff) | |
download | frameworks_base-9c80964d3fa869111eb82aae70903d2fb85089cc.zip frameworks_base-9c80964d3fa869111eb82aae70903d2fb85089cc.tar.gz frameworks_base-9c80964d3fa869111eb82aae70903d2fb85089cc.tar.bz2 |
In the speedbump view, use hasOverlappingRenderings instead of layers
Bug: 15181880
Change-Id: I49b0dbe1cd0ff9f7804dc68502b73fcfd87c7389
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/AlphaOptimizedView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/AlphaOptimizedView.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/AlphaOptimizedView.java b/packages/SystemUI/src/com/android/systemui/statusbar/AlphaOptimizedView.java new file mode 100644 index 0000000..d2fe858 --- /dev/null +++ b/packages/SystemUI/src/com/android/systemui/statusbar/AlphaOptimizedView.java @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License + */ + +package com.android.systemui.statusbar; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.View; + +/** + * A View which does not have overlapping renderings commands and therefore does not need a + * layer when alpha is changed. + */ +public class AlphaOptimizedView extends View +{ + public AlphaOptimizedView(Context context) { + super(context); + } + + public AlphaOptimizedView(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public AlphaOptimizedView(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + public AlphaOptimizedView(Context context, AttributeSet attrs, int defStyleAttr, + int defStyleRes) { + super(context, attrs, defStyleAttr, defStyleRes); + } + + @Override + public boolean hasOverlappingRendering() { + return false; + } +} |