From efef42a6f615b115c8b680bbb78ef93376efd206 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Tue, 25 Feb 2020 14:04:15 +1100 Subject: [PATCH 1/2] Added version string at the bottom of settings. --- res/layout/activity_settings.xml | 16 +++++++++++++++- res/values/dimens.xml | 1 + res/values/strings.xml | 3 ++- .../loki/redesign/activities/SettingsActivity.kt | 3 +++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/res/layout/activity_settings.xml b/res/layout/activity_settings.xml index ab8e81d6c9..8ec7ade823 100644 --- a/res/layout/activity_settings.xml +++ b/res/layout/activity_settings.xml @@ -257,9 +257,23 @@ + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index a4ec3dff18..c6f05a7a6f 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -29,6 +29,7 @@ 10dp 234dp 56dp + 24dp 8dp 4dp diff --git a/res/values/strings.xml b/res/values/strings.xml index aca6b1c236..673831ef51 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,13 +1,14 @@ Session - https://signal.org/install + https://getsession.org/ Yes No Delete Please wait... Save Note to Self + Version: %s New message diff --git a/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt b/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt index c3298506e5..51770bb559 100644 --- a/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt @@ -17,6 +17,7 @@ import android.view.inputmethod.InputMethodManager import android.widget.LinearLayout import android.widget.Toast import kotlinx.android.synthetic.main.activity_settings.* +import network.loki.messenger.BuildConfig import network.loki.messenger.R import nl.komponents.kovenant.Promise import nl.komponents.kovenant.all @@ -94,6 +95,8 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() { linkedDevicesButton.setOnClickListener { showLinkedDevices() } seedButton.setOnClickListener { showSeed() } clearAllDataButton.setOnClickListener { clearAllData() } + + versionText.text = String.format(getString(R.string.version_s), BuildConfig.VERSION_NAME) } public override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { From a20ccd659a032b3b20d443be639f450bf953dd7d Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 5 Mar 2020 14:24:10 +1100 Subject: [PATCH 2/2] Clean --- res/layout/activity_settings.xml | 11 ++++++----- res/values/dimens.xml | 1 - .../loki/redesign/activities/SettingsActivity.kt | 3 +-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/res/layout/activity_settings.xml b/res/layout/activity_settings.xml index 8ec7ade823..3c2490af60 100644 --- a/res/layout/activity_settings.xml +++ b/res/layout/activity_settings.xml @@ -257,22 +257,23 @@ + android:layout_marginBottom="@dimen/medium_spacing" /> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c6f05a7a6f..a4ec3dff18 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -29,7 +29,6 @@ 10dp 234dp 56dp - 24dp 8dp 4dp diff --git a/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt b/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt index 51770bb559..c82e4e9e3d 100644 --- a/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/redesign/activities/SettingsActivity.kt @@ -95,8 +95,7 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() { linkedDevicesButton.setOnClickListener { showLinkedDevices() } seedButton.setOnClickListener { showSeed() } clearAllDataButton.setOnClickListener { clearAllData() } - - versionText.text = String.format(getString(R.string.version_s), BuildConfig.VERSION_NAME) + versionTextView.text = String.format(getString(R.string.version_s), BuildConfig.VERSION_NAME) } public override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {