From a67560c28b50e0c88dece69d72ee07ac92518306 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Thu, 18 May 2017 07:29:16 +0200 Subject: [PATCH] Fixed and improved the UI for starting a full node --- .../java/ch/dissem/apps/abit/MainActivity.java | 2 +- app/src/main/res/layout/dialog_full_node.xml | 15 +++++++-------- app/src/main/res/values-de/strings.xml | 3 ++- app/src/main/res/values/strings.xml | 3 ++- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/ch/dissem/apps/abit/MainActivity.java b/app/src/main/java/ch/dissem/apps/abit/MainActivity.java index d52afe5..2384b48 100644 --- a/app/src/main/java/ch/dissem/apps/abit/MainActivity.java +++ b/app/src/main/java/ch/dissem/apps/abit/MainActivity.java @@ -479,7 +479,7 @@ public class MainActivity extends AppCompatActivity i.runOnUiThread(new Runnable() { @Override public void run() { - i.nodeSwitch.withChecked(i.bmc.isRunning()); + i.nodeSwitch.withChecked(Preferences.isFullNodeActive(i)); i.drawer.updateStickyFooterItem(i.nodeSwitch); } }); diff --git a/app/src/main/res/layout/dialog_full_node.xml b/app/src/main/res/layout/dialog_full_node.xml index 9c8edd9..450c969 100644 --- a/app/src/main/res/layout/dialog_full_node.xml +++ b/app/src/main/res/layout/dialog_full_node.xml @@ -38,12 +38,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="8dp" - android:text="@string/startup_node" + android:text="@string/use_mobile_network" android:textColor="@color/colorAccent" - app:layout_constraintEnd_toEndOf="@+id/description" + app:layout_constraintEnd_toEndOf="@id/description" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintTop_toBottomOf="@+id/description" - tools:layout_editor_absoluteX="184dp"/> + tools:layout_editor_absoluteX="8dp"/>