diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
index e2f51a14..544b5ca4 100644
--- a/app/proguard-rules.pro
+++ b/app/proguard-rules.pro
@@ -20,6 +20,4 @@
-dontwarn javax.annotation.Nullable
--keepclassmembers class * implements android.os.Parcelable {
- public static final ** CREATOR;
-}
\ No newline at end of file
+-keepclassmembers class * implements android.os.Parcelable {*;}
\ No newline at end of file
diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/api/TwitterException.java b/app/src/main/java/org/nuclearfog/twidda/backend/api/TwitterException.java
index 8f020e3b..b8d8512e 100644
--- a/app/src/main/java/org/nuclearfog/twidda/backend/api/TwitterException.java
+++ b/app/src/main/java/org/nuclearfog/twidda/backend/api/TwitterException.java
@@ -112,6 +112,9 @@ public class TwitterException extends Exception implements TwitterError {
case 261:
return ERROR_API_ACCESS_DENIED;
+ case 324:
+ return INVALID_MEDIA;
+
case 354:
return DM_TOO_LONG;
diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java b/app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java
index 0242a54d..8eb5691a 100644
--- a/app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java
+++ b/app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java
@@ -105,6 +105,9 @@ public final class ErrorHandler {
case TwitterError.REQUEST_FORBIDDEN:
return context.getString(R.string.error_forbidden_api_access);
+ case TwitterError.INVALID_MEDIA:
+ return context.getString(R.string.error_invalid_media);
+
case TwitterError.APP_SUSPENDED:
case TwitterError.ERROR_API_ACCESS_DENIED:
GlobalSettings settings = GlobalSettings.getInstance(context);
@@ -147,6 +150,7 @@ public final class ErrorHandler {
int REQUEST_FORBIDDEN = 18;
int APP_SUSPENDED = 19;
int ERROR_API_ACCESS_DENIED = 20;
+ int INVALID_MEDIA = 21;
int getErrorType();
diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml
index b76bb5be..fe80ac57 100644
--- a/app/src/main/res/values-de-rDE/strings.xml
+++ b/app/src/main/res/values-de-rDE/strings.xml
@@ -240,4 +240,5 @@
Unbekannter Fehler!
merken
Medienanhang
+ Ungültige Mediendatei!
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 728b5e36..32690529 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -93,6 +93,7 @@
Too much mentions!
Error, result cancelled!
Error, search query is too long or contains illegal characters!
+ Invalid media file!
Not specified error!
API does not support this operation!
could not load login information!
diff --git a/build.gradle b/build.gradle
index 6044aa06..a3307a43 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.2.0'
+ classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'io.michaelrocks:paranoid-gradle-plugin:0.3.7'
classpath 'gradle.plugin.ru.cleverpumpkin.proguard-dictionaries-generator:plugin:1.0.8'
}