fix compiling

This commit is contained in:
LegacyGamerHD 2020-07-29 11:37:38 +02:00
parent dfaff7ff33
commit 511a9110b5
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ public class ActionPopupWindow extends PinnedPopupWindow implements OnClickListe
try {
Field f = perType.getDeclaredField(name);
f.setAccessible(true);
return f.get(null);
return (int) f.get(null);
} catch (Throwable th) {
th.printStackTrace();
}
@ -63,7 +63,7 @@ public class ActionPopupWindow extends PinnedPopupWindow implements OnClickListe
try {
Field f = perType.getDeclaredField(name);
f.setAccessible(true);
return f.get(null);
return (int) f.get(null);
} catch (Throwable th) {
th.printStackTrace();
}

View File

@ -80,7 +80,7 @@ public abstract class HandleView extends View implements ViewPositionListener, V
try {
Field f = perType.getDeclaredField(name);
f.setAccessible(true);
return f.get(null);
return (int) f.get(null);
} catch (Throwable th) {
th.printStackTrace();
}

View File

@ -162,7 +162,7 @@ public class PojavPreferenceActivity extends MineActivity implements OnCheckedCh
try {
Field field = R.id.class.getDeclaredField(getId(bar.getId()).replace("seekbar", "progressseek"));
((TextView) findViewById(field.get(null))).setText(currProgress + "/" + bar.getMax());
((TextView) findViewById((Integer) field.get(null))).setText(currProgress + "/" + bar.getMax());
} catch (Throwable th) {
throw new RuntimeException(th);
}