Commit 601035d4 authored by fallenstardust's avatar fallenstardust

暂停启动时检查更新

parent d453d28e
...@@ -151,7 +151,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene ...@@ -151,7 +151,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
if (!EventBus.getDefault().isRegistered(this)) {//加上判断 if (!EventBus.getDefault().isRegistered(this)) {//加上判断
EventBus.getDefault().register(this); EventBus.getDefault().register(this);
} }
checkUpgrade(); //checkUpgrade();
showExNew(); showExNew();
//showNewbieGuide("homePage"); //showNewbieGuide("homePage");
return layoutView; return layoutView;
...@@ -291,7 +291,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene ...@@ -291,7 +291,7 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
case TYPE_GET_VERSION_OK: case TYPE_GET_VERSION_OK:
Version = msg.obj.toString(); Version = msg.obj.toString();
Log.i(BuildConfig.VERSION_NAME, Version); Log.i(BuildConfig.VERSION_NAME, Version);
if (!Version.equals(BuildConfig.VERSION_NAME)) { if (!Version.equals(BuildConfig.VERSION_NAME) && !Version.isEmpty()) {
DialogPlus dialog = new DialogPlus(getActivity()); DialogPlus dialog = new DialogPlus(getActivity());
dialog.setMessage(R.string.Found_Update); dialog.setMessage(R.string.Found_Update);
dialog.setLeftButtonText(R.string.download_home); dialog.setLeftButtonText(R.string.download_home);
......
...@@ -110,7 +110,7 @@ public class SettingFragment extends PreferenceFragmentPlus { ...@@ -110,7 +110,7 @@ public class SettingFragment extends PreferenceFragmentPlus {
case TYPE_SETTING_GET_VERSION_OK: case TYPE_SETTING_GET_VERSION_OK:
Version = msg.obj.toString(); Version = msg.obj.toString();
Log.i(BuildConfig.VERSION_NAME, Version); Log.i(BuildConfig.VERSION_NAME, Version);
if (!Version.equals(BuildConfig.VERSION_NAME)) { if (!Version.equals(BuildConfig.VERSION_NAME) && !Version.isEmpty()) {
DialogPlus dialog = new DialogPlus(getContext()); DialogPlus dialog = new DialogPlus(getContext());
dialog.setMessage(R.string.Found_Update); dialog.setMessage(R.string.Found_Update);
dialog.setLeftButtonText(R.string.download_home); dialog.setLeftButtonText(R.string.download_home);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment