Verified Commit 3ad64196 authored by HashikD's avatar HashikD
Browse files

Renamed start_button to snowflake_switch

parent d7df7f3c
......@@ -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.
......
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment