aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-08 22:29:00 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-08 22:29:00 +0100
commit58be0cd39fdb1b3862284f07dbc6fa2c08b6dbe5 (patch)
tree6306cb552b26236b196f74d1242599d790572a22 /src/main
parentf0e96ca60df9440b30fd5107160786e72a27f617 (diff)
code cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/UpdaterActivity.java5
-rw-r--r--src/main/res/layout/activity_updater.xml1
2 files changed, 3 insertions, 3 deletions
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")) {
diff --git a/src/main/res/layout/activity_updater.xml b/src/main/res/layout/activity_updater.xml
index 7dc7bae15..5079bb605 100644
--- a/src/main/res/layout/activity_updater.xml
+++ b/src/main/res/layout/activity_updater.xml
@@ -18,7 +18,6 @@
android:layout_below="@id/toolbar"
android:layout_centerHorizontal="true"
android:padding="@dimen/card_padding_regular"
- android:text="Current"
android:textAppearance="@style/TextAppearance.Conversations.Body1"
android:textStyle="normal" />