From 58be0cd39fdb1b3862284f07dbc6fa2c08b6dbe5 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 8 Nov 2018 22:29:00 +0100 Subject: code cleanup --- src/main/java/de/pixart/messenger/ui/UpdaterActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/de') diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java index fbed2daeb..046c9cba0 100644 --- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java @@ -46,6 +46,7 @@ public class UpdaterActivity extends XmppActivity { String store; ProgressDialog mProgressDialog; DownloadTask downloadTask; + TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { @@ -56,8 +57,7 @@ public class UpdaterActivity extends XmppActivity { this.mTheme = findTheme(); setTheme(this.mTheme); - TextView textView = findViewById(R.id.updater); - textView.setText(R.string.update_info); + textView = findViewById(R.id.updater); mProgressDialog = new ProgressDialog(UpdaterActivity.this) { //show warning on back pressed @@ -85,6 +85,7 @@ public class UpdaterActivity extends XmppActivity { this.mTheme = findTheme(); setTheme(this.mTheme); setTitle(getString(R.string.update_service)); + textView.setText(R.string.update_info); setSupportActionBar(findViewById(R.id.toolbar)); configureActionBar(getSupportActionBar()); if (getIntent() != null && getIntent().getStringExtra("update").equals("PixArtMessenger_UpdateService")) { -- cgit v1.2.3