Set Cardview to false by default
This commit is contained in:
parent
3a2f1e0d36
commit
aee4b0ff63
|
@ -1122,7 +1122,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
holder.status_pin.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
boolean display_card = sharedpreferences.getBoolean(Helper.SET_DISPLAY_CARD, true);
|
||||
boolean display_card = sharedpreferences.getBoolean(Helper.SET_DISPLAY_CARD, false);
|
||||
|
||||
if( status.getWebviewURL() != null){
|
||||
holder.status_cardview_webview.loadUrl(status.getWebviewURL());
|
||||
|
|
|
@ -105,7 +105,7 @@ public class SettingsFragment extends Fragment {
|
|||
});
|
||||
|
||||
|
||||
boolean display_card = sharedpreferences.getBoolean(Helper.SET_DISPLAY_CARD, true);
|
||||
boolean display_card = sharedpreferences.getBoolean(Helper.SET_DISPLAY_CARD, false);
|
||||
|
||||
final CheckBox set_display_card = rootView.findViewById(R.id.set_display_card);
|
||||
set_display_card.setChecked(display_card);
|
||||
|
|
|
@ -1969,7 +1969,13 @@ public class Helper {
|
|||
*/
|
||||
public static String accountToStringStorage(Account account){
|
||||
Gson gson = new Gson();
|
||||
return gson.toJson(account);
|
||||
try {
|
||||
return gson.toJson(account);
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue