Commit 51857fd4 authored by Varun Patil's avatar Varun Patil

Set show contact number from response

parent 5bf7e5c6
......@@ -140,7 +140,7 @@ public class SettingsFragment extends PreferenceFragmentCompat {
public void onResponse(Call<User> call, Response<User> response) {
if(getActivity() == null || getView() == null) return;
if (response.isSuccessful()) {
showContactPref.setChecked(isChecked);
showContactPref.setChecked(response.body().getShowContactNumber());
showContactPref.setEnabled(true);
} else {
showContactPref.setChecked(!isChecked);
......
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