Set Cardview to false by default

This commit is contained in:
stom79 2018-11-07 18:09:21 +01:00
parent 3a2f1e0d36
commit aee4b0ff63
3 changed files with 9 additions and 3 deletions

View File

@ -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());

View File

@ -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);

View File

@ -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;
}
}
/**