Skip to content

Commit

Permalink
v1.0.140907
Browse files Browse the repository at this point in the history
  • Loading branch information
sinpowei committed Sep 8, 2014
1 parent dc5376d commit 69e5ba3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sinpo.nfcspy"
android:versionCode="4"
android:versionName="1.0.140405" >
android:versionName="1.0.140907" >

<uses-sdk
android:minSdkVersion="14"
Expand Down
Binary file modified res/drawable-hdpi/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-xhdpi/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions src/com/sinpo/nfcspy/ServiceAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ private void onStartCommand(Intent intent) {

if (!p2p.isInited()) {
p2p.init(service, this);
service.registerReceiver(this, P2PFILTER);
if (!hasRegistered) {
service.registerReceiver(this, P2PFILTER);
hasRegistered = true;
}
sendStatus2Activity(MSG_P2P_INIT, STA_SUCCESS, STA_NOTCARE);
}

Expand Down Expand Up @@ -278,7 +281,11 @@ byte[] processCommandApdu(byte[] apdu, Bundle ignore) {
}

void onDestroy() {
service.unregisterReceiver(this);
if (hasRegistered) {
service.unregisterReceiver(this);
hasRegistered = false;
}

onCardDettached(null);
disconnect();
}
Expand Down Expand Up @@ -374,6 +381,7 @@ public void run() {
private IsoDep isodep;
private Messenger outbox;
private boolean lock;
private boolean hasRegistered;

private static boolean highSpeed;

Expand Down

0 comments on commit 69e5ba3

Please sign in to comment.