Merge pull request #256 from LegacyGamerHD/gl4es

add a gradle wrapper and fix building on android studio
This commit is contained in:
Tran Khanh Duy 2020-07-31 05:06:23 +07:00 committed by GitHub
commit a0e61210c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 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);
}

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,6 @@
#Mon Sep 12 09:22:55 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip