mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 23:28:52 -04:00
fix compiling
This commit is contained in:
parent
dfaff7ff33
commit
511a9110b5
@ -47,7 +47,7 @@ public class ActionPopupWindow extends PinnedPopupWindow implements OnClickListe
|
|||||||
try {
|
try {
|
||||||
Field f = perType.getDeclaredField(name);
|
Field f = perType.getDeclaredField(name);
|
||||||
f.setAccessible(true);
|
f.setAccessible(true);
|
||||||
return f.get(null);
|
return (int) f.get(null);
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
th.printStackTrace();
|
th.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ public class ActionPopupWindow extends PinnedPopupWindow implements OnClickListe
|
|||||||
try {
|
try {
|
||||||
Field f = perType.getDeclaredField(name);
|
Field f = perType.getDeclaredField(name);
|
||||||
f.setAccessible(true);
|
f.setAccessible(true);
|
||||||
return f.get(null);
|
return (int) f.get(null);
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
th.printStackTrace();
|
th.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ public abstract class HandleView extends View implements ViewPositionListener, V
|
|||||||
try {
|
try {
|
||||||
Field f = perType.getDeclaredField(name);
|
Field f = perType.getDeclaredField(name);
|
||||||
f.setAccessible(true);
|
f.setAccessible(true);
|
||||||
return f.get(null);
|
return (int) f.get(null);
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
th.printStackTrace();
|
th.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ public class PojavPreferenceActivity extends MineActivity implements OnCheckedCh
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
Field field = R.id.class.getDeclaredField(getId(bar.getId()).replace("seekbar", "progressseek"));
|
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) {
|
} catch (Throwable th) {
|
||||||
throw new RuntimeException(th);
|
throw new RuntimeException(th);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user