mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-11 06:44:00 +00:00
Create a bug fix flag for the FloatingMaskView.
Need to create a bug-fix flag since feature flags can't reach nextfood in time for V. We do this by renaming the current flag. According to https://g3doc.corp.google.com/company/teams/android-core-experiments/trunk-stable/gantry-stages/bug-fix.md?cl=head After a flag declaration has been merged, it's no longer possible to change its purpose. If the purpose of a flag changes over time, simply rename the flag; this will create a new workflow and invalidate the previous workflow. In cases where renaming is not possible, please file a bug for the ACE oncall. Even when re-using the name of a flag for a new purpose, please note that all the progress in the pre-existing workflow will be lost; the new bug-fix workflow will start from scratch. bug: 339850589 Test: Presubmit/locally adb shell device_config put launcher_search com.android.launcher3.private_space_add_floating_mask_view true Flag: ACONFIG com.android.launcher3.private_space_add_floating_mask_view STAGING Change-Id: Iffbc6a93c4ef6bbe121e0c8fb83250174f367b9d
This commit is contained in:
@@ -45,8 +45,11 @@ flag {
|
||||
|
||||
|
||||
flag {
|
||||
name: "private_space_floating_mask_view"
|
||||
name: "private_space_add_floating_mask_view"
|
||||
namespace: "launcher_search"
|
||||
description: "This flag enables the floating mask view as part of the Private Space animation. "
|
||||
bug: "339850589"
|
||||
metadata {
|
||||
purpose: PURPOSE_BUGFIX
|
||||
}
|
||||
}
|
||||
|
||||
@@ -738,7 +738,7 @@ public class PrivateProfileManager extends UserProfileManager {
|
||||
|
||||
/** Fades out the private space container. */
|
||||
private ValueAnimator translateFloatingMaskView(boolean animateIn) {
|
||||
if (!Flags.privateSpaceFloatingMaskView() || mFloatingMaskView == null) {
|
||||
if (!Flags.privateSpaceAddFloatingMaskView() || mFloatingMaskView == null) {
|
||||
return new ValueAnimator();
|
||||
}
|
||||
// Translate base on the height amount. Translates out on expand and in on collapse.
|
||||
@@ -849,7 +849,7 @@ public class PrivateProfileManager extends UserProfileManager {
|
||||
}
|
||||
|
||||
private void attachFloatingMaskView(boolean expand) {
|
||||
if (!Flags.privateSpaceFloatingMaskView()) {
|
||||
if (!Flags.privateSpaceAddFloatingMaskView()) {
|
||||
return;
|
||||
}
|
||||
mFloatingMaskView = (FloatingMaskView) mAllApps.getLayoutInflater().inflate(
|
||||
|
||||
Reference in New Issue
Block a user