Merge "Disable blurs while in multiwindow mode" into ub-launcher3-rvc-dev
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ public class BackgroundAppState extends OverviewState {
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDepth(Context context) {
|
||||
protected float getDepthUnchecked(Context context) {
|
||||
return 1f;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -203,7 +203,7 @@ public class OverviewState extends LauncherState {
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDepth(Context context) {
|
||||
protected float getDepthUnchecked(Context context) {
|
||||
return 1f;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class AllAppsState extends LauncherState {
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDepth(Context context) {
|
||||
protected float getDepthUnchecked(Context context) {
|
||||
return 1f;
|
||||
}
|
||||
|
||||
|
||||
@@ -285,7 +285,14 @@ public abstract class LauncherState {
|
||||
*
|
||||
* 0 means completely zoomed in, without blurs. 1 is zoomed out, with blurs.
|
||||
*/
|
||||
public float getDepth(Context context) {
|
||||
public final float getDepth(Context context) {
|
||||
if (BaseDraggingActivity.fromContext(context).getDeviceProfile().isMultiWindowMode) {
|
||||
return 0;
|
||||
}
|
||||
return getDepthUnchecked(context);
|
||||
}
|
||||
|
||||
protected float getDepthUnchecked(Context context) {
|
||||
return 0f;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ public class SpringLoadedState extends LauncherState {
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDepth(Context context) {
|
||||
protected float getDepthUnchecked(Context context) {
|
||||
return 0.5f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user