forked from organicmaps/organicmaps
some logic fix.
This commit is contained in:
parent
bb08c6bef4
commit
b2414734eb
2 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue