diff options
| author | 2016-07-25 13:07:56 -0700 | |
|---|---|---|
| committer | 2016-07-25 13:08:19 -0700 | |
| commit | fef31ad5ae90c476ff6af39c03ae5f485c42d522 (patch) | |
| tree | 64a3e52930810e9ab8ad182d2210468a3ccc433d | |
| parent | 0da397ea71e67c22f75c41fa1c7a9a2fc9777ac3 (diff) | |
Set title in onCreate.
This makes sure the accessibility service recognizes the correcy title.
Fixes: 30220082
Change-Id: Ieaa37818a55c7b2e543bbe8bd8836996ef0529d2
| -rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java index 3e262d08286a..3b25edb5443e 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -244,6 +244,8 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + setTitle(R.string.print_dialog); + Bundle extras = getIntent().getExtras(); mPrintJob = extras.getParcelable(PrintManager.EXTRA_PRINT_JOB); @@ -298,7 +300,6 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat // Now that we are bound to the local print spooler service // and the printer registry loaded the historical printers // we can show the UI without flickering. - setTitle(R.string.print_dialog); setContentView(R.layout.print_activity); try { |