From 23fdefff77bc39e021827ffc0cfd3217da873bda Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 29 Apr 2018 14:52:52 +0200 Subject: some more theme fixes --- .../de/pixart/messenger/ui/RecordingActivity.java | 2 ++ .../de/pixart/messenger/ui/UpdaterActivity.java | 9 ++++++++ src/main/res/layout/activity_updater.xml | 26 +++++++++++++--------- src/main/res/layout/toolbar.xml | 10 ++++----- 4 files changed, 31 insertions(+), 16 deletions(-) (limited to 'src/main') diff --git a/src/main/java/de/pixart/messenger/ui/RecordingActivity.java b/src/main/java/de/pixart/messenger/ui/RecordingActivity.java index 3aaa6b42b..b49566c27 100644 --- a/src/main/java/de/pixart/messenger/ui/RecordingActivity.java +++ b/src/main/java/de/pixart/messenger/ui/RecordingActivity.java @@ -70,6 +70,8 @@ public class RecordingActivity extends XmppActivity implements View.OnClickListe @Override protected void onStart() { super.onStart(); + this.mTheme = findTheme(); + setTheme(this.mTheme); Log.d(Config.LOGTAG, "output: " + getOutputFile()); if (!startRecording()) { mStopButton.setEnabled(false); diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java index 562b75313..96d53aa97 100644 --- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java @@ -50,6 +50,10 @@ public class UpdaterActivity extends XmppActivity { //set activity setContentView(R.layout.activity_updater); + + this.mTheme = findTheme(); + setTheme(this.mTheme); + TextView textView = findViewById(R.id.updater); textView.setText(R.string.update_info); @@ -76,6 +80,11 @@ public class UpdaterActivity extends XmppActivity { @Override protected void onStart() { super.onStart(); + this.mTheme = findTheme(); + setTheme(this.mTheme); + setTitle(getString(R.string.update_service)); + setSupportActionBar(findViewById(R.id.toolbar)); + configureActionBar(getSupportActionBar()); if (getIntent() != null && getIntent().getStringExtra("update").equals("PixArtMessenger_UpdateService")) { try { appURI = getIntent().getStringExtra("url"); diff --git a/src/main/res/layout/activity_updater.xml b/src/main/res/layout/activity_updater.xml index 4aa9deb8f..9fe33c0c9 100644 --- a/src/main/res/layout/activity_updater.xml +++ b/src/main/res/layout/activity_updater.xml @@ -3,27 +3,31 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/color_background_secondary" tools:context="${applicationId}.ui.UpdaterActivity"> + + + android:textAppearance="@style/TextAppearance.Conversations.Body1" + android:textStyle="normal" /> + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" /> - + \ No newline at end of file diff --git a/src/main/res/layout/toolbar.xml b/src/main/res/layout/toolbar.xml index ca0ab0cd3..e9782393f 100644 --- a/src/main/res/layout/toolbar.xml +++ b/src/main/res/layout/toolbar.xml @@ -1,11 +1,11 @@ - \ No newline at end of file + app:popupTheme="?popupOverlayStyle" /> \ No newline at end of file -- cgit v1.2.3