Skip to content

Commit 082f32c

Browse files
committed
Fix media quality parameter indexing for width, height, and rotation angle
1 parent cb7bd45 commit 082f32c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/features/media/MediaQuality.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
108108

109109
if (mediaFields.isEmpty()) {
110110
if (isEnum) {
111-
width = intParams.get(2).second;
112-
height = intParams.get(3).second;
113-
rotationAngle = intParams.get(4).second;
111+
width = intParams.get(0).second;
112+
height = intParams.get(1).second;
113+
rotationAngle = intParams.get(2).second;
114114
} else {
115115
JSONObject mediaFields = (JSONObject) XposedHelpers.callMethod(param.args[0], "A00");
116116
width = mediaFields.getInt("widthPx");

0 commit comments

Comments
 (0)