[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-mobile/master] Renamed start_button to snowflake_switch
commit 3ad64196dbbf186d1c861dcb453fdc058d4b50bc
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date: Thu Aug 6 18:52:23 2020 +0530
Renamed start_button to snowflake_switch
---
.../main/java/org/torproject/snowflake/fragments/MainFragment.java | 2 +-
app/src/main/res/layout/fragment_main.xml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
index 45ce672..796debd 100644
--- a/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
+++ b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
@@ -52,7 +52,7 @@ public class MainFragment extends Fragment {
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main, container, false);
usersServedTV = rootView.findViewById(R.id.users_served);
- Switch startButton = rootView.findViewById(R.id.start_button);
+ Switch startButton = rootView.findViewById(R.id.snowflake_switch);
startButton.setOnCheckedChangeListener((buttonView, isChecked) -> {
if (callback.isServiceRunning() && !isChecked) { //Toggling the service.
diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml
index ffae082..b83ff0c 100644
--- a/app/src/main/res/layout/fragment_main.xml
+++ b/app/src/main/res/layout/fragment_main.xml
@@ -6,7 +6,7 @@
tools:context=".fragments.MainFragment">
<Switch
- android:id="@+id/start_button"
+ android:id="@+id/snowflake_switch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
@@ -30,7 +30,7 @@
android:id="@+id/users_served"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_below="@id/start_button"
+ android:layout_below="@id/snowflake_switch"
android:layout_centerHorizontal="true"
android:fontFamily="@font/source_code_pro"
android:gravity="center"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits