Skip to content

Commit

Permalink
Log the full current running package name
Browse files Browse the repository at this point in the history
  • Loading branch information
fishy committed Oct 31, 2016
1 parent 49ffae9 commit d6e1c40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/yhsif/onepwd/OnePwd.java
Expand Up @@ -8,6 +8,7 @@
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Base64;
import android.util.Log;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
Expand All @@ -17,6 +18,7 @@
import java.util.List;

public class OnePwd extends Activity implements View.OnClickListener {
private final static String TAG = "onepwd";
private final static int USAGE_TIMEFRAME = 24 * 60 * 60 * 1000; // 24 hours

static final String PREF = "com.yhsif.onepwd";
Expand Down Expand Up @@ -126,6 +128,7 @@ public void doGenerate() {
private void prefillSiteKey() {
String pkg = getForegroundApp();
if (pkg != null) {
Log.v(TAG, String.format("Package is \"%s\"", pkg));
String[] segments = pkg.split("\\.");
if (segments.length >= 2) {
String sitekey = segments[1];
Expand Down

0 comments on commit d6e1c40

Please sign in to comment.