OSDN Git Service

Provide content description for WorkLockActivity.
authorPavel Grafov <pgrafov@google.com>
Tue, 20 Jun 2017 15:19:46 +0000 (16:19 +0100)
committerPavel Grafov <pgrafov@google.com>
Tue, 20 Jun 2017 15:26:34 +0000 (16:26 +0100)
This way the activity can be brought to foreground using TalkBack
in split-screen and free-form window mode.

Bug: 62814166
Test: Manually.
Change-Id: Idf3a0235fe7ec076b0f1d1f7b88e8b9e237e2d46

packages/SystemUI/src/com/android/systemui/keyguard/WorkLockActivity.java

index 32b5862..af2b767 100644 (file)
@@ -38,6 +38,7 @@ import android.util.Log;
 import android.view.View;
 
 import com.android.internal.annotations.VisibleForTesting;
+import com.android.systemui.R;
 
 /**
  * Bouncer between work activities and the activity used to confirm credentials before unlocking
@@ -83,6 +84,7 @@ public class WorkLockActivity extends Activity {
         // Blank out the activity. When it is on-screen it will look like a Recents thumbnail with
         // redaction switched on.
         final View blankView = new View(this);
+        blankView.setContentDescription(getString(R.string.accessibility_desc_work_lock));
         blankView.setBackgroundColor(getPrimaryColor());
         setContentView(blankView);
     }