1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-22 11:13:49 +00:00

autofill WIP into main activity. created login selection page

This commit is contained in:
Kyle Spearrin
2017-01-27 23:13:28 -05:00
parent 61e0379eb3
commit 26667c0a59
10 changed files with 266 additions and 51 deletions

View File

@@ -7,17 +7,17 @@ using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Bit.App.Models;
using Android.Views;
namespace Bit.Android
{
[Activity(Label = "bitwarden Autofill",
[Activity(Label = "bitwarden",
Icon = "@drawable/icon",
LaunchMode = global::Android.Content.PM.LaunchMode.SingleInstance,
Theme = "@style/android:Theme.Material.Light")]
WindowSoftInputMode = SoftInput.StateHidden)]
public class AutofillActivity : Activity
{
private string _lastQueriedUri;
public static Credentials LastCredentials;
protected override void OnCreate(Bundle bundle)
@@ -25,12 +25,11 @@ namespace Bit.Android
base.OnCreate(bundle);
_lastQueriedUri = Intent.GetStringExtra("uri");
var intent = new Intent(this, typeof(AutofillSelectLoginActivity));
var intent = new Intent(this, typeof(MainActivity));
intent.PutExtra("uri", _lastQueriedUri);
StartActivityForResult(intent, 123);
}
protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
@@ -62,4 +61,4 @@ namespace Bit.Android
public string Uri;
}
}
}
}