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"/>