some logic fix.

This commit is contained in:
rachytski 2012-06-10 23:13:22 +04:00 committed by Alex Zolotarev
parent bb08c6bef4
commit b2414734eb
2 changed files with 3 additions and 3 deletions

View file

@ -135,6 +135,8 @@ extern "C"
void OnProVersionServerReply(downloader::HttpRequest & r, shared_ptr<jobject> obj)
{
uint64_t curTime = time(0);
if (r.Status() == downloader::HttpRequest::ECompleted)
{
string url = r.Data();
@ -162,7 +164,6 @@ extern "C"
else
LOG(LDEBUG, ("ProVersion check response finished with error"));
uint64_t curTime = time(0);
Settings::Set(SETTINGS_PRO_VERSION_LAST_CHECK_TIME, strings::to_string(curTime));
}

View file

@ -238,9 +238,8 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
public void onClick(DialogInterface dlg, int which)
{
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(nativeGetProVersionURL()));
startActivity(i);
a.moveTaskToBack(true);
dlg.dismiss();
startActivity(i);
}
});