1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-30 11:14:51 +02:00
This commit is contained in:
Kyle Spearrin 2017-07-25 08:51:55 -04:00
parent 73425c0052
commit 1ba0729e34
5 changed files with 18 additions and 27 deletions

View File

@ -153,6 +153,8 @@ namespace Bit.Android.Services
return Task.FromResult(0);
}
var additionalIntents = new List<IParcelable>();
var docIntent = new Intent(Intent.ActionOpenDocument);
docIntent.AddCategory(Intent.CategoryOpenable);
docIntent.SetType("*/*");
@ -165,11 +167,15 @@ namespace Bit.Android.Services
var file = new Java.IO.File(root, "temp_camera_photo.jpg");
if(!file.Exists())
{
var a = file.ParentFile.Mkdirs();
var b = file.CreateNewFile();
file.ParentFile.Mkdirs();
file.CreateNewFile();
}
var outputFileUri = global::Android.Net.Uri.FromFile(file);
var additionalIntents = GetCameraIntents(outputFileUri);
additionalIntents.AddRange(GetCameraIntents(outputFileUri));
}
if(additionalIntents.Count > 0)
{
chooserIntent.PutExtra(Intent.ExtraInitialIntents, additionalIntents.ToArray());
}

View File

@ -73,10 +73,16 @@ namespace Bit.App.Pages
ShowDisclousure = true
};
LockCell = new ExtendedTextCell
{
Text = AppResources.Lock
};
var securitySecion = new TableSection(AppResources.Security)
{
LockOptionsCell,
PinCell,
LockCell,
TwoStepCell
};
@ -117,11 +123,6 @@ namespace Bit.App.Pages
ShowDisclousure = true
};
LockCell = new ExtendedTextCell
{
Text = AppResources.Lock
};
LogOutCell = new ExtendedTextCell
{
Text = AppResources.LogOut
@ -177,18 +178,14 @@ namespace Bit.App.Pages
new TableSection(AppResources.Account)
{
ChangeMasterPasswordCell,
ChangeEmailCell
ChangeEmailCell,
LogOutCell
},
new TableSection(AppResources.Manage)
{
FoldersCell,
SyncCell
},
new TableSection(AppResources.CurrentSession)
{
LockCell,
LogOutCell
},
otherSection
}
};

View File

@ -316,7 +316,7 @@ namespace Bit.App.Pages
AppResources.LearnMore, AppResources.Cancel);
if(confirmed)
{
Device.OpenUri(new Uri("https://help.bitwarden.com"));
Device.OpenUri(new Uri("https://help.bitwarden.com/article/update-encryption-key/"));
}
}
}

View File

@ -682,15 +682,6 @@ namespace Bit.App.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Current Session.
/// </summary>
public static string CurrentSession {
get {
return ResourceManager.GetString("CurrentSession", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete.
/// </summary>

View File

@ -467,9 +467,6 @@
<value>Creating account...</value>
<comment>Message shown when interacting with the server</comment>
</data>
<data name="CurrentSession" xml:space="preserve">
<value>Current Session</value>
</data>
<data name="EditLogin" xml:space="preserve">
<value>Edit Login</value>
</data>