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 { ...@@ -52,7 +52,7 @@ public class MainFragment extends Fragment {
Bundle savedInstanceState) { Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main, container, false); View rootView = inflater.inflate(R.layout.fragment_main, container, false);
usersServedTV = rootView.findViewById(R.id.users_served); 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) -> { startButton.setOnCheckedChangeListener((buttonView, isChecked) -> {
if (callback.isServiceRunning() && !isChecked) { //Toggling the service. if (callback.isServiceRunning() && !isChecked) { //Toggling the service.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
tools:context=".fragments.MainFragment"> tools:context=".fragments.MainFragment">
<Switch <Switch
android:id="@+id/start_button" android:id="@+id/snowflake_switch"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
android:id="@+id/users_served" android:id="@+id/users_served"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/start_button" android:layout_below="@id/snowflake_switch"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:fontFamily="@font/source_code_pro" android:fontFamily="@font/source_code_pro"
android:gravity="center" 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