Ensure form data is not optimized by proguard

This commit is contained in:
Marvin W 2019-10-16 01:29:20 +02:00
parent fc3e24c0ea
commit 6c27c2474e
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
2 changed files with 17 additions and 2 deletions

View File

@ -308,7 +308,12 @@ public class LoginActivity extends AssistantActivity {
@Override
public void onException(Exception exception) {
Log.w(TAG, "onException: " + exception);
Log.w(TAG, "onException", exception);
runOnUiThread(() -> {
showError(R.string.auth_general_error_desc);
setNextButtonText(android.R.string.ok);
});
state = -2;
}
});
}
@ -339,7 +344,12 @@ public class LoginActivity extends AssistantActivity {
@Override
public void onException(Exception exception) {
Log.w(TAG, "onException: " + exception);
Log.w(TAG, "onException", exception);
runOnUiThread(() -> {
showError(R.string.auth_general_error_desc);
setNextButtonText(android.R.string.ok);
});
state = -2;
}
});
}

View File

@ -33,6 +33,11 @@
@org.microg.safeparcel.SafeParceled *;
}
# Keep form data
-keepclassmembers class * {
@org.microg.gms.common.HttpFormClient$* *;
}
# Keep asInterface method cause it's accessed from SafeParcel
-keepattributes InnerClasses
-keepclassmembers interface * extends android.os.IInterface {