Skip to content

Commit 09c5b13

Browse files
committed
fixed indicate cancel only when still in input mode
1 parent 16bfce8 commit 09c5b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wallet/src/de/schildbach/wallet/ui/SendCoinsFragment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ public void onClick(final View v)
315315
{
316316
public void onClick(final View v)
317317
{
318-
activity.setResult(Activity.RESULT_CANCELED);
318+
if (state == State.INPUT)
319+
activity.setResult(Activity.RESULT_CANCELED);
319320

320321
activity.finish();
321322
}

0 commit comments

Comments
 (0)