Avoids deleted toots to be dealt
This commit is contained in:
parent
faf995f0c9
commit
dfb84622bd
|
@ -79,7 +79,7 @@ The number of libraries is minimized and it does not use tracking tools. The sou
|
|||
* Disable the built-in browser in settings
|
||||
|
||||
|
||||
Developer: [@tschneider](https://mastodon.etalab.gouv.fr/@tschneider)
|
||||
Developer: [@tom79](https://mastodon.social/@tom79)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -229,9 +229,9 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
|||
nextElementLoader.setVisibility(View.GONE);
|
||||
//Discards 404 - error which can often happen due to toots which have been deleted
|
||||
final SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||
if( apiResponse.getError() != null && !apiResponse.getError().getError().startsWith("404 -")){
|
||||
if( apiResponse.getError() != null ){
|
||||
boolean show_error_messages = sharedpreferences.getBoolean(Helper.SET_SHOW_ERROR_MESSAGES, true);
|
||||
if( show_error_messages)
|
||||
if( show_error_messages && !apiResponse.getError().getError().startsWith("404 -"))
|
||||
Toast.makeText(context, apiResponse.getError().getError(),Toast.LENGTH_LONG).show();
|
||||
swipeRefreshLayout.setRefreshing(false);
|
||||
swiped = false;
|
||||
|
|
Loading…
Reference in New Issue