Skip to content

Commit

Permalink
Fixed #61 : auto capture and sync crashes when unknown monsters are e…
Browse files Browse the repository at this point in the history
…ncountered
  • Loading branch information
Neraud committed Dec 7, 2014
1 parent bd422d0 commit 44c443e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package fr.neraud.padlistener.service;

import android.app.AlertDialog;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.ResultReceiver;
import android.widget.Toast;

import org.apache.commons.lang3.StringUtils;

Expand Down Expand Up @@ -172,10 +172,8 @@ private ChooseSyncModel prepareSync(ComputeSyncResultModel result) {
final ChooseSyncModel mChooseResult = initHelper.filterSyncResult();

if (result.isHasEncounteredUnknownMonster()) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.choose_sync_alert_unknown_monster_encountered_title);
builder.setMessage(R.string.choose_sync_alert_unknown_monster_encountered_content);
builder.create().show();
MyLog.info("Unknown monsters encountered");
Toast.makeText(this, R.string.choose_sync_alert_unknown_monster_encountered_toast, Toast.LENGTH_LONG).show();
}

MyLog.exit();
Expand Down
4 changes: 4 additions & 0 deletions PADListenerApp/src/main/res/xml/changelog_master.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog>
<release
version="" versioncode="">
<change>Fixed #61 : auto capture and sync crashes when unknown monsters are encountered</change>
</release>
<release
version="2.0.0" versioncode="43">
<change>Misc technical changes</change>
Expand Down

0 comments on commit 44c443e

Please sign in to comment.