Loading packages/SystemUI/aconfig/systemui.aconfig +1 −1 Original line number Diff line number Diff line Loading @@ -415,7 +415,7 @@ flag { } flag { name: "screenshot_shelf_ui" name: "screenshot_shelf_ui2" namespace: "systemui" description: "Use new shelf UI flow for screenshots" bug: "329659738" Loading packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java +5 −5 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ package com.android.systemui.screenshot; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static com.android.systemui.Flags.screenshotShelfUi; import static com.android.systemui.Flags.screenshotShelfUi2; import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM; import static com.android.systemui.screenshot.LogConfig.DEBUG_CALLBACK; import static com.android.systemui.screenshot.LogConfig.DEBUG_INPUT; Loading Loading @@ -403,7 +403,7 @@ public class ScreenshotController { return; } if (screenshotShelfUi()) { if (screenshotShelfUi2()) { final UUID requestId = UUID.randomUUID(); final String screenshotId = String.format("Screenshot_%s", requestId); mActionsProvider = mActionsProviderFactory.create( Loading Loading @@ -454,7 +454,7 @@ public class ScreenshotController { // ignore system bar insets for the purpose of window layout mWindow.getDecorView().setOnApplyWindowInsetsListener( (v, insets) -> WindowInsets.CONSUMED); if (!screenshotShelfUi()) { if (!screenshotShelfUi2()) { mScreenshotHandler.cancelTimeout(); // restarted after animation } } Loading Loading @@ -503,7 +503,7 @@ public class ScreenshotController { } boolean isPendingSharedTransition() { if (screenshotShelfUi()) { if (screenshotShelfUi2()) { return mActionExecutor.isPendingSharedTransition(); } else { return mViewProxy.isPendingSharedTransition(); Loading Loading @@ -624,7 +624,7 @@ public class ScreenshotController { (response) -> { mUiEventLogger.log(ScreenshotEvent.SCREENSHOT_LONG_SCREENSHOT_IMPRESSION, 0, response.getPackageName()); if (screenshotShelfUi() && mActionsProvider != null) { if (screenshotShelfUi2() && mActionsProvider != null) { mActionsProvider.onScrollChipReady( () -> onScrollButtonClicked(owner, response)); } else { Loading packages/SystemUI/src/com/android/systemui/screenshot/dagger/ScreenshotModule.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.systemui.screenshot.dagger; import static com.android.systemui.Flags.screenshotShelfUi; import static com.android.systemui.Flags.screenshotShelfUi2; import android.app.Service; import android.view.accessibility.AccessibilityManager; Loading Loading @@ -102,7 +102,7 @@ public abstract class ScreenshotModule { static ScreenshotViewProxy.Factory providesScreenshotViewProxyFactory( ScreenshotShelfViewProxy.Factory shelfScreenshotViewProxyFactory, LegacyScreenshotViewProxy.Factory legacyScreenshotViewProxyFactory) { if (screenshotShelfUi()) { if (screenshotShelfUi2()) { return shelfScreenshotViewProxyFactory; } else { return legacyScreenshotViewProxyFactory; Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +1 −1 Original line number Diff line number Diff line Loading @@ -415,7 +415,7 @@ flag { } flag { name: "screenshot_shelf_ui" name: "screenshot_shelf_ui2" namespace: "systemui" description: "Use new shelf UI flow for screenshots" bug: "329659738" Loading
packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java +5 −5 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ package com.android.systemui.screenshot; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static com.android.systemui.Flags.screenshotShelfUi; import static com.android.systemui.Flags.screenshotShelfUi2; import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM; import static com.android.systemui.screenshot.LogConfig.DEBUG_CALLBACK; import static com.android.systemui.screenshot.LogConfig.DEBUG_INPUT; Loading Loading @@ -403,7 +403,7 @@ public class ScreenshotController { return; } if (screenshotShelfUi()) { if (screenshotShelfUi2()) { final UUID requestId = UUID.randomUUID(); final String screenshotId = String.format("Screenshot_%s", requestId); mActionsProvider = mActionsProviderFactory.create( Loading Loading @@ -454,7 +454,7 @@ public class ScreenshotController { // ignore system bar insets for the purpose of window layout mWindow.getDecorView().setOnApplyWindowInsetsListener( (v, insets) -> WindowInsets.CONSUMED); if (!screenshotShelfUi()) { if (!screenshotShelfUi2()) { mScreenshotHandler.cancelTimeout(); // restarted after animation } } Loading Loading @@ -503,7 +503,7 @@ public class ScreenshotController { } boolean isPendingSharedTransition() { if (screenshotShelfUi()) { if (screenshotShelfUi2()) { return mActionExecutor.isPendingSharedTransition(); } else { return mViewProxy.isPendingSharedTransition(); Loading Loading @@ -624,7 +624,7 @@ public class ScreenshotController { (response) -> { mUiEventLogger.log(ScreenshotEvent.SCREENSHOT_LONG_SCREENSHOT_IMPRESSION, 0, response.getPackageName()); if (screenshotShelfUi() && mActionsProvider != null) { if (screenshotShelfUi2() && mActionsProvider != null) { mActionsProvider.onScrollChipReady( () -> onScrollButtonClicked(owner, response)); } else { Loading
packages/SystemUI/src/com/android/systemui/screenshot/dagger/ScreenshotModule.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.systemui.screenshot.dagger; import static com.android.systemui.Flags.screenshotShelfUi; import static com.android.systemui.Flags.screenshotShelfUi2; import android.app.Service; import android.view.accessibility.AccessibilityManager; Loading Loading @@ -102,7 +102,7 @@ public abstract class ScreenshotModule { static ScreenshotViewProxy.Factory providesScreenshotViewProxyFactory( ScreenshotShelfViewProxy.Factory shelfScreenshotViewProxyFactory, LegacyScreenshotViewProxy.Factory legacyScreenshotViewProxyFactory) { if (screenshotShelfUi()) { if (screenshotShelfUi2()) { return shelfScreenshotViewProxyFactory; } else { return legacyScreenshotViewProxyFactory; Loading