Skip to content

Commit

Permalink
Fixed #101 : the app crashed when too many monsters are synced at the…
Browse files Browse the repository at this point in the history
… same time
  • Loading branch information
Neraud committed Feb 23, 2016
1 parent ed5d58f commit be26dae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
public class ChooseSyncActivity extends AbstractPADListenerActivity {

public static final String EXTRA_ACCOUNT_ID_NAME = "account_id";
public static final String EXTRA_SYNC_RESULT_NAME = "sync_result";
public static final String EXTRA_CHOOSE_SYNC_RESULT_NAME = "choose_sync_result";
private int mAccountId;
private ChooseSyncModel mChooseResult;
Expand All @@ -40,11 +39,10 @@ public void onCreate(Bundle savedInstanceState) {

final Bundle extras = getIntent().getExtras();

final ComputeSyncResultModel result = (ComputeSyncResultModel) extras.getSerializable(EXTRA_SYNC_RESULT_NAME);
mAccountId = extras.getInt(EXTRA_ACCOUNT_ID_NAME);
mChooseResult = (ChooseSyncModel) extras.getSerializable(ChooseSyncActivity.EXTRA_CHOOSE_SYNC_RESULT_NAME);

if (result.isHasEncounteredUnknownMonster()) {
if (mChooseResult.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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ public void updateState(RestCallState state, RestCallRunningStep runningStep, Co
} else {
if (initHelper.isHasDataToSync()) {
final Bundle extras = new Bundle();
extras.putSerializable(ChooseSyncActivity.EXTRA_SYNC_RESULT_NAME, syncResult);
extras.putSerializable(ChooseSyncActivity.EXTRA_CHOOSE_SYNC_RESULT_NAME, chooseSyncModel);
extras.putInt(ChooseSyncActivity.EXTRA_ACCOUNT_ID_NAME, mAccountId);
((AbstractPADListenerActivity) getActivity()).goToScreen(UiScreen.CHOOSE_SYNC, extras);
Expand Down
1 change: 1 addition & 0 deletions PADListenerApp/src/main/res/xml/changelog_master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<change>Fixed #90 : repaired Manual capture for M (thanks olifozzy !)</change>
<change>Fixed #91 : Tapping on "PAD data captured" notification dismisses it</change>
<change>Fixed #94 : Added support for CardID</change>
<change>Fixed #101 : the app crashed when too many monsters are synced at the same time</change>
</release>
<release
version="2.1.8" versioncode="56">
Expand Down

0 comments on commit be26dae

Please sign in to comment.