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:
UnknownShadow200 2020-09-27 20:11:09 +10:00
parent 351c8d570c
commit a466890ac3
3 changed files with 5 additions and 3 deletions

View File

@ -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'

View File

@ -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);

View File

@ -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;