Commit 606d6f56 authored by Preetam Ozarde's avatar Preetam Ozarde

Venter: Remove Toasts

parent a75556eb
......@@ -94,7 +94,6 @@ public class ComplaintDetailsFragment extends Fragment {
if (response.isSuccessful()) {
Venter.Complaint complaint = response.body();
initTabViews(complaint);
Toast.makeText(getActivity().getApplicationContext(), "You have Up Voted this complaint", Toast.LENGTH_SHORT).show();
voteCount++;
}
}
......@@ -104,8 +103,6 @@ public class ComplaintDetailsFragment extends Fragment {
Log.i(TAG, "failure in up vote: " + t.toString());
}
});
} else {
Toast.makeText(getActivity().getApplicationContext(), "You have already UpVoted this complaint", Toast.LENGTH_SHORT).show();
}
}
......
......@@ -125,7 +125,6 @@ public class FileComplaintFragment extends Fragment {
String userId;
View view;
NestedScrollView nestedScrollView;
LinearLayout linearLayoutAddImage;
private boolean GPSIsSetup = false;
FusedLocationProviderClient mFusedLocationClient;
ProgressDialog progressDialog;
......@@ -328,6 +327,7 @@ public class FileComplaintFragment extends Fragment {
});
// ends here
tagView = view.findViewById(R.id.tag_view);
tagView.setOnTagDeleteListener(new TagView.OnTagDeleteListener() {
......@@ -600,10 +600,12 @@ public class FileComplaintFragment extends Fragment {
@Override
public void run() {
nestedScrollView.fullScroll(ScrollView.FOCUS_DOWN);
}
});
}
private void prepareTags() {
tagList = new ArrayList<>();
try {
......@@ -814,7 +816,7 @@ public class FileComplaintFragment extends Fragment {
if (viewPager != null) {
try {
imageViewPagerAdapter = new ImageViewPagerAdapter(getFragmentManager(), uploadedImagesUrl);
linearLayoutAddImage.setVisibility(View.GONE);
collapsing_toolbar.setVisibility(View.VISIBLE);
viewPager.setAdapter(imageViewPagerAdapter);
indicator.setViewPager(viewPager);
imageViewPagerAdapter.registerDataSetObserver(indicator.getDataSetObserver());
......
Markdown is supported
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