This commit is contained in:
Grishka 2022-11-13 19:18:42 +04:00
parent 56b42071ac
commit 3671803f49
2 changed files with 7 additions and 4 deletions

View File

@ -191,15 +191,18 @@ public abstract class MastodonAPIRequest<T> extends APIRequest<T>{
}
void onError(ErrorResponse err){
invokeErrorCallback(err);
if(!canceled)
invokeErrorCallback(err);
}
void onError(String msg, int httpStatus, Throwable exception){
invokeErrorCallback(new MastodonErrorResponse(msg, httpStatus, exception));
if(!canceled)
invokeErrorCallback(new MastodonErrorResponse(msg, httpStatus, exception));
}
void onSuccess(T resp){
invokeSuccessCallback(resp);
if(!canceled)
invokeSuccessCallback(resp);
}
@Override

View File

@ -13,7 +13,7 @@
<locale android:name="eu" />
<locale android:name="fi" />
<locale android:name="fr" />
<loacle android:name="sl".
<loacle android:name="sl"/>
<locale android:name="gl" />
<locale android:name="hi-IN"/>
<locale android:name="hr" />