From 09207b2b5cfaa2eff95d3e531fdad98dd4f5c4a2 Mon Sep 17 00:00:00 2001 From: Sourav Patra Date: Sun, 2 Aug 2020 11:22:53 -0400 Subject: [PATCH] Cleanup --- .../buildOutputCleanup/buildOutputCleanup.lock | Bin 17 -> 17 bytes .../yourrealcountry/YourrealcountryFragment.java | 5 +---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index bcfc2e5ce13e383b5ab4321e6ce24d655570b184..d30a7564f9671b357e5b04c4cb5bc0cf8514a5bd 100755 GIT binary patch literal 17 VcmZR+ab2fDE%nW61~6d%0RTCr1%Lnm literal 17 VcmZR+ab2fDE%nW61~6cM1pqmh1#$oY diff --git a/app/src/main/java/com/josh/trackcovid19v2/ui/yourrealcountry/YourrealcountryFragment.java b/app/src/main/java/com/josh/trackcovid19v2/ui/yourrealcountry/YourrealcountryFragment.java index 0b3fae2..d84846e 100755 --- a/app/src/main/java/com/josh/trackcovid19v2/ui/yourrealcountry/YourrealcountryFragment.java +++ b/app/src/main/java/com/josh/trackcovid19v2/ui/yourrealcountry/YourrealcountryFragment.java @@ -121,7 +121,7 @@ public class YourrealcountryFragment extends Fragment { final TextView textView12 = view.findViewById(R.id.text_testsPerOneMillionData); final TextView textView13 = view.findViewById(R.id.text_updated); final ImageView imageView = view.findViewById(R.id.htmlImageGetter); - ArrayAdapter adapter = new ArrayAdapter(getActivity(), R.layout.my_spinner_style, country_list); + ArrayAdapter adapter = new ArrayAdapter<>(getActivity(), R.layout.my_spinner_style, country_list); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spin.setAdapter(adapter); if (rememberLocation[0] == -1) @@ -257,10 +257,7 @@ public class YourrealcountryFragment extends Fragment { } private void postRequest() { - int size = 100; // this is the count of the data items. - int page = 1; // Which page do we want to get from the server. ServiceRequest serviceRequest = new ServiceRequest(); vYourrealcountryViewModel.postRequest(serviceRequest); - } }