Loading packages/SystemUI/aconfig/systemui.aconfig +0 −10 Original line number Original line Diff line number Diff line Loading @@ -588,16 +588,6 @@ flag { } } } } flag { name: "screenshot_private_profile_accessibility_announcement_fix" namespace: "systemui" description: "Modified a11y announcement for private space screenshots" bug: "326941376" metadata { purpose: PURPOSE_BUGFIX } } flag { flag { name: "screenshot_private_profile_behavior_fix" name: "screenshot_private_profile_behavior_fix" namespace: "systemui" namespace: "systemui" Loading packages/SystemUI/src/com/android/systemui/screenshot/LegacyScreenshotController.java +3 −14 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,6 @@ package com.android.systemui.screenshot; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static com.android.systemui.Flags.screenshotPrivateProfileAccessibilityAnnouncementFix; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM; 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_CALLBACK; Loading Loading @@ -355,19 +354,9 @@ public class LegacyScreenshotController implements InteractiveScreenshotHandler void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { withWindowAttached(() -> { withWindowAttached(() -> { if (screenshotPrivateProfileAccessibilityAnnouncementFix()) { mAnnouncementResolver.getScreenshotAnnouncement( mAnnouncementResolver.getScreenshotAnnouncement( screenshot.getUserHandle().getIdentifier(), screenshot.getUserHandle().getIdentifier(), mViewProxy::announceForAccessibility); mViewProxy::announceForAccessibility); } else { if (mUserManager.isManagedProfile(screenshot.getUserHandle().getIdentifier())) { mViewProxy.announceForAccessibility(mContext.getResources().getString( R.string.screenshot_saving_work_profile_title)); } else { mViewProxy.announceForAccessibility( mContext.getResources().getString(R.string.screenshot_saving_title)); } } }); }); mViewProxy.reset(); mViewProxy.reset(); Loading packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java +5 −14 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,6 @@ package com.android.systemui.screenshot; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static com.android.systemui.Flags.screenshotPrivateProfileAccessibilityAnnouncementFix; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM; 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_CALLBACK; Loading Loading @@ -355,19 +354,11 @@ public class ScreenshotController implements InteractiveScreenshotHandler { void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { withWindowAttached(() -> { withWindowAttached(() -> { if (screenshotPrivateProfileAccessibilityAnnouncementFix()) { mAnnouncementResolver.getScreenshotAnnouncement( mAnnouncementResolver.getScreenshotAnnouncement( screenshot.getUserHandle().getIdentifier(), screenshot.getUserHandle().getIdentifier(), mViewProxy::announceForAccessibility); announcement -> { } else { mViewProxy.announceForAccessibility(announcement); if (mUserManager.isManagedProfile(screenshot.getUserHandle().getIdentifier())) { }); mViewProxy.announceForAccessibility(mContext.getResources().getString( R.string.screenshot_saving_work_profile_title)); } else { mViewProxy.announceForAccessibility( mContext.getResources().getString(R.string.screenshot_saving_title)); } } }); }); mViewProxy.reset(); mViewProxy.reset(); Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +0 −10 Original line number Original line Diff line number Diff line Loading @@ -588,16 +588,6 @@ flag { } } } } flag { name: "screenshot_private_profile_accessibility_announcement_fix" namespace: "systemui" description: "Modified a11y announcement for private space screenshots" bug: "326941376" metadata { purpose: PURPOSE_BUGFIX } } flag { flag { name: "screenshot_private_profile_behavior_fix" name: "screenshot_private_profile_behavior_fix" namespace: "systemui" namespace: "systemui" Loading
packages/SystemUI/src/com/android/systemui/screenshot/LegacyScreenshotController.java +3 −14 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,6 @@ package com.android.systemui.screenshot; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static com.android.systemui.Flags.screenshotPrivateProfileAccessibilityAnnouncementFix; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM; 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_CALLBACK; Loading Loading @@ -355,19 +354,9 @@ public class LegacyScreenshotController implements InteractiveScreenshotHandler void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { withWindowAttached(() -> { withWindowAttached(() -> { if (screenshotPrivateProfileAccessibilityAnnouncementFix()) { mAnnouncementResolver.getScreenshotAnnouncement( mAnnouncementResolver.getScreenshotAnnouncement( screenshot.getUserHandle().getIdentifier(), screenshot.getUserHandle().getIdentifier(), mViewProxy::announceForAccessibility); mViewProxy::announceForAccessibility); } else { if (mUserManager.isManagedProfile(screenshot.getUserHandle().getIdentifier())) { mViewProxy.announceForAccessibility(mContext.getResources().getString( R.string.screenshot_saving_work_profile_title)); } else { mViewProxy.announceForAccessibility( mContext.getResources().getString(R.string.screenshot_saving_title)); } } }); }); mViewProxy.reset(); mViewProxy.reset(); Loading
packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java +5 −14 Original line number Original line Diff line number Diff line Loading @@ -19,7 +19,6 @@ package com.android.systemui.screenshot; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.content.res.Configuration.ORIENTATION_PORTRAIT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT; import static com.android.systemui.Flags.screenshotPrivateProfileAccessibilityAnnouncementFix; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.Flags.screenshotSaveImageExporter; import static com.android.systemui.screenshot.LogConfig.DEBUG_ANIM; 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_CALLBACK; Loading Loading @@ -355,19 +354,11 @@ public class ScreenshotController implements InteractiveScreenshotHandler { void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { void prepareViewForNewScreenshot(@NonNull ScreenshotData screenshot, String oldPackageName) { withWindowAttached(() -> { withWindowAttached(() -> { if (screenshotPrivateProfileAccessibilityAnnouncementFix()) { mAnnouncementResolver.getScreenshotAnnouncement( mAnnouncementResolver.getScreenshotAnnouncement( screenshot.getUserHandle().getIdentifier(), screenshot.getUserHandle().getIdentifier(), mViewProxy::announceForAccessibility); announcement -> { } else { mViewProxy.announceForAccessibility(announcement); if (mUserManager.isManagedProfile(screenshot.getUserHandle().getIdentifier())) { }); mViewProxy.announceForAccessibility(mContext.getResources().getString( R.string.screenshot_saving_work_profile_title)); } else { mViewProxy.announceForAccessibility( mContext.getResources().getString(R.string.screenshot_saving_title)); } } }); }); mViewProxy.reset(); mViewProxy.reset(); Loading