diff options
| author | Matthew Wong <wongma@protonmail.ch> | 2015-07-31 09:00:06 -0400 |
|---|---|---|
| committer | Matthew Wong <wongma@protonmail.ch> | 2015-08-14 17:36:47 -0400 |
| commit | 2d7c37d379ae48fa3ff464032ad4cb1759b1dc31 (patch) | |
| tree | 3ecaabc58ace429db6fe67d64c2b7a8252baabe4 /app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java | |
| parent | 4b15ea3ae90fa870c622192cbf89eb5e02db97b6 (diff) | |
| download | HardenedPass-2d7c37d379ae48fa3ff464032ad4cb1759b1dc31.tar.gz HardenedPass-2d7c37d379ae48fa3ff464032ad4cb1759b1dc31.zip | |
Add per-app settings page
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java b/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java deleted file mode 100644 index 2a1227b9..00000000 --- a/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.zeapo.pwdstore; - -import android.app.PendingIntent; -import android.content.Intent; -import android.content.IntentSender; -import android.os.Bundle; -import android.support.v7.app.AppCompatActivity; -import android.util.Log; - -// blank activity started by service for calling startIntentSenderForResult -public class AutofillActivity extends AppCompatActivity { - public static final int REQUEST_CODE_DECRYPT_AND_VERIFY = 9913; - private boolean bound = false; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - Intent intent = getIntent(); - PendingIntent pi = intent.getExtras().getParcelable("pending_intent"); - try { - startIntentSenderForResult(pi.getIntentSender() - , REQUEST_CODE_DECRYPT_AND_VERIFY, null, 0, 0, 0); - } catch (IntentSender.SendIntentException e) { - Log.e(AutofillService.Constants.TAG, "SendIntentException", e); - } - } - - @Override - protected void onActivityResult(int requestCode, int resultCode, Intent data) { - finish(); // go back to the password field app - if (resultCode == RESULT_OK) { - AutofillService.setUnlockOK(); // report the result to service - } - } -} |
