directmessage bugfix

This commit is contained in:
nuclearfog 2022-01-13 22:52:10 +01:00
parent 3fdbe9af6c
commit 62cfab21b4
No known key found for this signature in database
GPG Key ID: AA0271FBE406DB98
2 changed files with 6 additions and 0 deletions

View File

@ -1066,10 +1066,14 @@ public class Twitter {
try {
Response response = delete(DIRECTMESSAGE_DELETE, params);
if (response.code() >= 300) {
if (response.body() != null)
throw new TwitterException(new JSONObject(response.body().string()));
throw new TwitterException(response);
}
} catch (IOException err) {
throw new TwitterException(err);
} catch (JSONException err) {
throw new TwitterException(err);
}
}

View File

@ -31,6 +31,8 @@
android:importantForAutofill="no"
android:inputType="text"
android:singleLine="true"
android:digits="abcdefghijklmnopqrstuvwxyz_0123456789@"
android:maxLength="16"
app:layout_constraintStart_toStartOf="@id/dm_background"
app:layout_constraintTop_toTopOf="@id/dm_background"
app:layout_constraintBottom_toBottomOf="@id/dm_send"