Set title in onCreate.

am: fef31ad5ae

Change-Id: Ide036a4f9bed9953040be7aa0f0fee26f9c84c82
This commit is contained in:
Philip P. Moltmann
2016-07-25 23:05:10 +00:00
committed by android-build-merger

View File

@@ -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 {