mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Fix 'check for updates' showing 'failed' and add message in updates menu telling user they need to redownload and reinstall apk, fixes #714
This commit is contained in:
parent
351c8d570c
commit
a466890ac3
@ -1,12 +1,12 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
compileSdkVersion 26
|
||||
|
||||
defaultConfig {
|
||||
applicationId = 'com.classicube.android'
|
||||
minSdkVersion 13
|
||||
targetSdkVersion 28
|
||||
targetSdkVersion 26
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments '-DANDROID_STL=c++_static'
|
||||
|
@ -491,7 +491,6 @@ public class MainActivity extends Activity implements SurfaceHolder.Callback2 {
|
||||
byte[] readCache = new byte[8192];
|
||||
|
||||
public int httpInit(String url, String method) {
|
||||
url = url.replace("http://", "https://");
|
||||
try {
|
||||
conn = (HttpURLConnection)new URL(url).openConnection();
|
||||
conn.setDoInput(true);
|
||||
|
@ -1584,6 +1584,9 @@ static void UpdatesScreen_Init(struct LScreen* s_) {
|
||||
LButton_Init(s_, &s->btnRel[1], 130, 35, "OpenGL");
|
||||
LButton_Init(s_, &s->btnDev[1], 130, 35, "OpenGL");
|
||||
}
|
||||
#ifdef CC_BUILD_ANDROID
|
||||
LLabel_Init(s_, &s->lblInfo, "&eRedownload and reinstall to update");
|
||||
#endif
|
||||
|
||||
s->btnRel[0].OnClick = UpdatesScreen_RelD3D9;
|
||||
s->btnRel[1].OnClick = UpdatesScreen_RelOpenGL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user