Commit 4351a012bb72bc972af0b627511d0cd6c44e9071

Authored by wugian
1 parent 5b8e9b48

disable update auto

... ... @@ -25,7 +25,6 @@ import android.os.Handler;
25 25 import android.os.Message;
26 26 import android.text.TextUtils;
27 27 import android.util.Log;
28   -
29 28 import com.gimi.common.cinema.utils.Config;
30 29 import com.gimi.common.cinema.utils.OkHttpClientManager;
31 30 import com.gimi.common.cinema.utils.SystemUtils;
... ... @@ -225,7 +224,7 @@ public class AppUpgradeManager {
225 224 int verCode = -1;
226 225 try {
227 226 verCode = context.getPackageManager().getPackageInfo(
228   - packageName, 0).versionCode;
  227 + packageName.equals("com.xgimi.gimicinema.ft") ? "com.xgimi.gimicinema" : packageName, 0).versionCode;
229 228 } catch (PackageManager.NameNotFoundException e) {
230 229 Log.e(TAG, e.getMessage());
231 230 }
... ... @@ -236,7 +235,7 @@ public class AppUpgradeManager {
236 235 String verName = "";
237 236 try {
238 237 verName = context.getPackageManager().getPackageInfo(
239   - packageName, 0).versionName;
  238 + packageName.equals("com.xgimi.gimicinema.ft") ? "com.xgimi.gimicinema" : packageName, 0).versionName;
240 239 } catch (PackageManager.NameNotFoundException e) {
241 240 Log.e(TAG, e.getMessage());
242 241 }
... ...
... ... @@ -85,18 +85,18 @@ public class UpdateModelImpl implements IUpdateModel {
85 85 @Override
86 86 public void updateAppVersion(Context context, boolean bool) {
87 87
88   - final AppUpgradeManager appUpgradeManager = new AppUpgradeManager(context, "com.xgimi.gimicinema", bool);
  88 +// final AppUpgradeManager appUpgradeManager = new AppUpgradeManager(context, "com.xgimi.gimicinema", bool);
89 89 // if (appUpdateUtils == null) {
90 90 // appUpdateUtils = new AppUpdateUtils(context);
91 91 // }
92 92 // appUpdateUtils.setShowNoUpdate(bool);
93   - ThreadUtils.subThread(new ThreadUtils.DoSomeThing() {
94   - @Override
95   - public void doSomeThing() {
96   - appUpgradeManager.updateAppVersion();
  93 +// ThreadUtils.subThread(new ThreadUtils.DoSomeThing() {
  94 +// @Override
  95 +// public void doSomeThing() {
  96 +// appUpgradeManager.updateAppVersion();
97 97 // appUpdateUtils.updateAppVersion();
98   - }
99   - });
  98 +// }
  99 +// });
100 100 }
101 101
102 102 @Override
... ...
Please register or login to post a comment