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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user