diff --git a/src/AndroidFileChooserBinding/AndroidFileChooserBinding.csproj b/src/AndroidFileChooserBinding/AndroidFileChooserBinding.csproj
index f2f82fc4..b30112ca 100644
--- a/src/AndroidFileChooserBinding/AndroidFileChooserBinding.csproj
+++ b/src/AndroidFileChooserBinding/AndroidFileChooserBinding.csproj
@@ -31,6 +31,15 @@
prompt
4
+
+ bin\ReleaseNoNet\
+ TRACE
+ true
+ pdbonly
+ AnyCPU
+ prompt
+ MinimumRecommendedRules.ruleset
+
diff --git a/src/AndroidFileChooserBinding/Properties/AssemblyInfo.cs b/src/AndroidFileChooserBinding/Properties/AssemblyInfo.cs
index ae798b3f..b469b65d 100644
--- a/src/AndroidFileChooserBinding/Properties/AssemblyInfo.cs
+++ b/src/AndroidFileChooserBinding/Properties/AssemblyInfo.cs
@@ -28,7 +28,3 @@ using Android.App;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
-
-// Add some common permissions, these can be removed if not needed
-[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
-[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
diff --git a/src/AppCompatV7Binding/AppCompatV7Binding.csproj b/src/AppCompatV7Binding/AppCompatV7Binding.csproj
index 84465e63..cea4c5ce 100644
--- a/src/AppCompatV7Binding/AppCompatV7Binding.csproj
+++ b/src/AppCompatV7Binding/AppCompatV7Binding.csproj
@@ -31,6 +31,15 @@
prompt
4
+
+ bin\ReleaseNoNet\
+ TRACE
+ true
+ pdbonly
+ AnyCPU
+ prompt
+ MinimumRecommendedRules.ruleset
+
diff --git a/src/AppCompatV7Binding/Properties/AssemblyInfo.cs b/src/AppCompatV7Binding/Properties/AssemblyInfo.cs
index 48e746c3..1795c801 100644
--- a/src/AppCompatV7Binding/Properties/AssemblyInfo.cs
+++ b/src/AppCompatV7Binding/Properties/AssemblyInfo.cs
@@ -28,7 +28,3 @@ using Android.App;
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
-
-// Add some common permissions, these can be removed if not needed
-[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
-[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
diff --git a/src/JavaFileStorageBindings/JavaFileStorageBindings.csproj b/src/JavaFileStorageBindings/JavaFileStorageBindings.csproj
index 1522b710..df382ed3 100644
--- a/src/JavaFileStorageBindings/JavaFileStorageBindings.csproj
+++ b/src/JavaFileStorageBindings/JavaFileStorageBindings.csproj
@@ -31,6 +31,15 @@
prompt
4
+
+ bin\ReleaseNoNet\
+ TRACE
+ true
+ pdbonly
+ AnyCPU
+ prompt
+ MinimumRecommendedRules.ruleset
+
..\Components\googleplayservicesfroyo-9.0\lib\android\GooglePlayServicesFroyoLib.dll
diff --git a/src/JavaFileStorageBindings/Properties/AssemblyInfo.cs b/src/JavaFileStorageBindings/Properties/AssemblyInfo.cs
index c49cfd29..7f2865c5 100644
--- a/src/JavaFileStorageBindings/Properties/AssemblyInfo.cs
+++ b/src/JavaFileStorageBindings/Properties/AssemblyInfo.cs
@@ -27,8 +27,4 @@ using Android.App;
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
-
-// Add some common permissions, these can be removed if not needed
-[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
-[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
+[assembly: AssemblyFileVersion("1.0.0.0")]
\ No newline at end of file
diff --git a/src/KeePass.sln b/src/KeePass.sln
index c8e67a4d..90f0816b 100644
--- a/src/KeePass.sln
+++ b/src/KeePass.sln
@@ -222,8 +222,8 @@ Global
{48574278-4779-4B3A-A9E4-9CF1BC285D0B}.Release|x64.ActiveCfg = Release|Any CPU
{48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU
{48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU
- {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU
- {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU
+ {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU
+ {48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU
{48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU
{48574278-4779-4B3A-A9E4-9CF1BC285D0B}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU
{23233A28-D74F-4BF8-B4D8-834060840BD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -240,8 +240,8 @@ Global
{23233A28-D74F-4BF8-B4D8-834060840BD7}.Release|x64.ActiveCfg = Release|Any CPU
{23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU
{23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU
- {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU
- {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU
+ {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU
+ {23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU
{23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU
{23233A28-D74F-4BF8-B4D8-834060840BD7}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU
{3C0F7FE5-639F-4422-A087-8B26CF862D1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -258,8 +258,8 @@ Global
{3C0F7FE5-639F-4422-A087-8B26CF862D1B}.Release|x64.ActiveCfg = Release|Any CPU
{3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU
{3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU
- {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU
- {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU
+ {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU
+ {3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU
{3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU
{3C0F7FE5-639F-4422-A087-8B26CF862D1B}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU
EndGlobalSection
diff --git a/src/KeePassLib2Android/KeePassLib2Android.csproj b/src/KeePassLib2Android/KeePassLib2Android.csproj
index 546adf81..a94a4e68 100644
--- a/src/KeePassLib2Android/KeePassLib2Android.csproj
+++ b/src/KeePassLib2Android/KeePassLib2Android.csproj
@@ -20,7 +20,7 @@
full
False
bin\Debug
- DEBUG;EXCLUDE_TWOFISH;EXCLUDE_KEYBOARD;EXCLUDE_KEYTRANSFORM;EXCLUDE_FILECHOOSER;EXCLUDE_JAVAFILESTORAGE
+ DEBUG;EXCLUDE_TWOFISH;INCLUDE_KEYBOARD;EXCLUDE_KEYTRANSFORM;INCLUDE_FILECHOOSER;INCLUDE_JAVAFILESTORAGE
prompt
4
False
diff --git a/src/Kp2aBusinessLogic/Io/BuiltInFileStorage.cs b/src/Kp2aBusinessLogic/Io/BuiltInFileStorage.cs
index cf467f10..ce078dd0 100644
--- a/src/Kp2aBusinessLogic/Io/BuiltInFileStorage.cs
+++ b/src/Kp2aBusinessLogic/Io/BuiltInFileStorage.cs
@@ -69,9 +69,11 @@ namespace keepass2android.Io
get
{
yield return "file";
+#if !NoNet
yield return "ftp";
yield return "http";
yield return "https";
+#endif
}
}
diff --git a/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj b/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj
index 9cbaf367..9b7d78b0 100644
--- a/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj
+++ b/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj
@@ -20,7 +20,7 @@
full
false
bin\Debug\
- TRACE;DEBUG;EXCLUDE_TWOFISH;EXCLUDE_KEYBOARD;EXCLUDE_KEYTRANSFORM;EXCLUDE_FILECHOOSER;EXCLUDE_JAVAFILESTORAGE
+ TRACE;DEBUG;EXCLUDE_TWOFISH;INCLUDE_KEYBOARD;EXCLUDE_KEYTRANSFORM;INCLUDE_FILECHOOSER;INCLUDE_JAVAFILESTORAGE
prompt
4
@@ -34,7 +34,7 @@
bin\ReleaseNoNet\
- TRACE
+ TRACE;NoNet
true
pdbonly
AnyCPU
diff --git a/src/keepass2android/CreateDatabaseActivity.cs b/src/keepass2android/CreateDatabaseActivity.cs
index b3bf43c4..d042beb0 100644
--- a/src/keepass2android/CreateDatabaseActivity.cs
+++ b/src/keepass2android/CreateDatabaseActivity.cs
@@ -228,7 +228,7 @@ namespace keepass2android
string fileProviderAuthority = FileChooserFileProvider.TheAuthority;
if (defaultPath.StartsWith("file://"))
{
- fileProviderAuthority = "keepass2android.keepass2android.android-filechooser.localfile";
+ fileProviderAuthority = "keepass2android."+AppNames.PackagePart+".android-filechooser.localfile";
}
Intent i = Keepass2android.Kp2afilechooser.Kp2aFileChooserBridge.GetLaunchFileChooserIntent(this, fileProviderAuthority,
defaultPath);
diff --git a/src/keepass2android/FileStorageSelectionActivity.cs b/src/keepass2android/FileStorageSelectionActivity.cs
index 5a8792a6..b91a58bf 100644
--- a/src/keepass2android/FileStorageSelectionActivity.cs
+++ b/src/keepass2android/FileStorageSelectionActivity.cs
@@ -39,6 +39,9 @@ namespace keepass2android
_protocolIds.Add("androidget");
if (context.Intent.GetBooleanExtra(AllowThirdPartyAppSend, false))
_protocolIds.Add("androidsend");
+#if NoNet
+ _protocolIds.Add("kp2a");
+#endif
}
public override Object GetItem(int position)
@@ -53,8 +56,16 @@ namespace keepass2android
public override View GetView(int position, View convertView, ViewGroup parent)
{
- var view = new FileStorageView(_context, _protocolIds[position], position);
- return view;
+ if (_protocolIds[position] == "kp2a")
+ {
+ return new FileStorageViewKp2a(_context);
+ }
+ else
+ {
+ var view = new FileStorageView(_context, _protocolIds[position], position);
+ return view;
+ }
+
}
@@ -66,6 +77,13 @@ namespace keepass2android
private void OnItemSelected(string protocolId)
{
+ if (protocolId == "kp2a")
+ {
+ //send user to market page of regular edition to get more protocols
+ Util.GotoUrl(this, GetString(Resource.String.MarketURL) + "keepass2android.keepass2android");
+ return;
+ }
+
var field = typeof(Resource.String).GetField("filestoragehelp_" + protocolId);
if (field == null)
{
diff --git a/src/keepass2android/Properties/AndroidManifest_nonet.xml b/src/keepass2android/Properties/AndroidManifest_nonet.xml
index 57f42ae9..a413d316 100644
--- a/src/keepass2android/Properties/AndroidManifest_nonet.xml
+++ b/src/keepass2android/Properties/AndroidManifest_nonet.xml
@@ -1,11 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/keepass2android/Resources/Resource.designer.cs b/src/keepass2android/Resources/Resource.designer.cs
index c1a968a9..2304a835 100644
--- a/src/keepass2android/Resources/Resource.designer.cs
+++ b/src/keepass2android/Resources/Resource.designer.cs
@@ -3155,70 +3155,73 @@ namespace keepass2android
public const int filestorage_selection_listitem = 2130903099;
// aapt resource value: 0x7f03003c
- public const int generate_password = 2130903100;
+ public const int filestorage_selection_listitem_kp2a = 2130903100;
// aapt resource value: 0x7f03003d
- public const int group_add_entry = 2130903101;
+ public const int generate_password = 2130903101;
// aapt resource value: 0x7f03003e
- public const int group_edit = 2130903102;
+ public const int group_add_entry = 2130903102;
// aapt resource value: 0x7f03003f
- public const int group_empty = 2130903103;
+ public const int group_edit = 2130903103;
// aapt resource value: 0x7f030040
- public const int group_header = 2130903104;
+ public const int group_empty = 2130903104;
// aapt resource value: 0x7f030041
- public const int group_list_entry = 2130903105;
+ public const int group_header = 2130903105;
// aapt resource value: 0x7f030042
- public const int icon = 2130903106;
+ public const int group_list_entry = 2130903106;
// aapt resource value: 0x7f030043
- public const int icon_picker = 2130903107;
+ public const int icon = 2130903107;
// aapt resource value: 0x7f030044
- public const int input = 2130903108;
+ public const int icon_picker = 2130903108;
// aapt resource value: 0x7f030045
- public const int InViewButton = 2130903109;
+ public const int input = 2130903109;
// aapt resource value: 0x7f030046
- public const int password = 2130903110;
+ public const int InViewButton = 2130903110;
// aapt resource value: 0x7f030047
- public const int QuickUnlock = 2130903111;
+ public const int password = 2130903111;
// aapt resource value: 0x7f030048
- public const int QuickUnlock_Unused = 2130903112;
+ public const int QuickUnlock = 2130903112;
// aapt resource value: 0x7f030049
- public const int SaveButton = 2130903113;
+ public const int QuickUnlock_Unused = 2130903113;
// aapt resource value: 0x7f03004a
- public const int search = 2130903114;
+ public const int SaveButton = 2130903114;
// aapt resource value: 0x7f03004b
- public const int searchurlresults = 2130903115;
+ public const int search = 2130903115;
// aapt resource value: 0x7f03004c
- public const int searchurlresults_empty = 2130903116;
+ public const int searchurlresults = 2130903116;
// aapt resource value: 0x7f03004d
- public const int set_password = 2130903117;
+ public const int searchurlresults_empty = 2130903117;
// aapt resource value: 0x7f03004e
- public const int StartScreenButtons = 2130903118;
+ public const int set_password = 2130903118;
// aapt resource value: 0x7f03004f
- public const int support_simple_spinner_dropdown_item = 2130903119;
+ public const int StartScreenButtons = 2130903119;
// aapt resource value: 0x7f030050
- public const int text_with_help = 2130903120;
+ public const int support_simple_spinner_dropdown_item = 2130903120;
// aapt resource value: 0x7f030051
- public const int url_credentials = 2130903121;
+ public const int text_with_help = 2130903121;
+
+ // aapt resource value: 0x7f030052
+ public const int url_credentials = 2130903122;
static Layout()
{
@@ -3361,53 +3364,53 @@ namespace keepass2android
// aapt resource value: 0x7f0801d0
public const int CannotMoveGroupHere = 2131231184;
- // aapt resource value: 0x7f0801fe
- public const int CertificateFailure = 2131231230;
+ // aapt resource value: 0x7f0801ff
+ public const int CertificateFailure = 2131231231;
- // aapt resource value: 0x7f0801fd
- public const int CertificateWarning = 2131231229;
+ // aapt resource value: 0x7f0801fe
+ public const int CertificateWarning = 2131231230;
+
+ // aapt resource value: 0x7f08020d
+ public const int ChangeLog = 2131231245;
// aapt resource value: 0x7f08020c
- public const int ChangeLog = 2131231244;
-
- // aapt resource value: 0x7f08020b
- public const int ChangeLog_0_7 = 2131231243;
-
- // aapt resource value: 0x7f080209
- public const int ChangeLog_0_8 = 2131231241;
-
- // aapt resource value: 0x7f080208
- public const int ChangeLog_0_8_1 = 2131231240;
-
- // aapt resource value: 0x7f080207
- public const int ChangeLog_0_8_2 = 2131231239;
-
- // aapt resource value: 0x7f080206
- public const int ChangeLog_0_8_3 = 2131231238;
-
- // aapt resource value: 0x7f080205
- public const int ChangeLog_0_8_4 = 2131231237;
-
- // aapt resource value: 0x7f080204
- public const int ChangeLog_0_8_5 = 2131231236;
-
- // aapt resource value: 0x7f080203
- public const int ChangeLog_0_8_6 = 2131231235;
-
- // aapt resource value: 0x7f080202
- public const int ChangeLog_0_9 = 2131231234;
-
- // aapt resource value: 0x7f080201
- public const int ChangeLog_0_9_1 = 2131231233;
-
- // aapt resource value: 0x7f080200
- public const int ChangeLog_0_9_2 = 2131231232;
+ public const int ChangeLog_0_7 = 2131231244;
// aapt resource value: 0x7f08020a
- public const int ChangeLog_keptDonate = 2131231242;
+ public const int ChangeLog_0_8 = 2131231242;
- // aapt resource value: 0x7f0801ff
- public const int ChangeLog_title = 2131231231;
+ // aapt resource value: 0x7f080209
+ public const int ChangeLog_0_8_1 = 2131231241;
+
+ // aapt resource value: 0x7f080208
+ public const int ChangeLog_0_8_2 = 2131231240;
+
+ // aapt resource value: 0x7f080207
+ public const int ChangeLog_0_8_3 = 2131231239;
+
+ // aapt resource value: 0x7f080206
+ public const int ChangeLog_0_8_4 = 2131231238;
+
+ // aapt resource value: 0x7f080205
+ public const int ChangeLog_0_8_5 = 2131231237;
+
+ // aapt resource value: 0x7f080204
+ public const int ChangeLog_0_8_6 = 2131231236;
+
+ // aapt resource value: 0x7f080203
+ public const int ChangeLog_0_9 = 2131231235;
+
+ // aapt resource value: 0x7f080202
+ public const int ChangeLog_0_9_1 = 2131231234;
+
+ // aapt resource value: 0x7f080201
+ public const int ChangeLog_0_9_2 = 2131231233;
+
+ // aapt resource value: 0x7f08020b
+ public const int ChangeLog_keptDonate = 2131231243;
+
+ // aapt resource value: 0x7f080200
+ public const int ChangeLog_title = 2131231232;
// aapt resource value: 0x7f080095
public const int CheckForFileChangesOnSave_key = 2131230869;
@@ -4387,6 +4390,9 @@ namespace keepass2android
// aapt resource value: 0x7f0800f3
public const int generate_password = 2131230963;
+ // aapt resource value: 0x7f0801fd
+ public const int get_regular_version = 2131231229;
+
// aapt resource value: 0x7f0800f4
public const int group = 2131230964;
diff --git a/src/keepass2android/Resources/layout/filestorage_selection_listitem_kp2a.xml b/src/keepass2android/Resources/layout/filestorage_selection_listitem_kp2a.xml
new file mode 100644
index 00000000..133a88f9
--- /dev/null
+++ b/src/keepass2android/Resources/layout/filestorage_selection_listitem_kp2a.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/keepass2android/Resources/values/strings.xml b/src/keepass2android/Resources/values/strings.xml
index c8ecb255..4fbf6b8f 100644
--- a/src/keepass2android/Resources/values/strings.xml
+++ b/src/keepass2android/Resources/values/strings.xml
@@ -378,6 +378,8 @@
Loading…
+ Get more storage types
+
Warning: Server certificate validation failed: %1$s. Install appropriate root certificate on your device or see settings!
Error: Server certificate validation failed! Install appropriate root certificate on your device or see settings!
diff --git a/src/keepass2android/Utils/Util.cs b/src/keepass2android/Utils/Util.cs
index 686390d6..c544968b 100644
--- a/src/keepass2android/Utils/Util.cs
+++ b/src/keepass2android/Utils/Util.cs
@@ -153,7 +153,7 @@ namespace keepass2android
{
#if !EXCLUDE_FILECHOOSER
- const string fileProviderAuthority = "keepass2android.keepass2android.android-filechooser.localfile";
+ string fileProviderAuthority = act.PackageName+".android-filechooser.localfile";
Intent i = Keepass2android.Kp2afilechooser.Kp2aFileChooserBridge.GetLaunchFileChooserIntent(act,
fileProviderAuthority,
diff --git a/src/keepass2android/app/App.cs b/src/keepass2android/app/App.cs
index f615e322..145ca6cd 100644
--- a/src/keepass2android/app/App.cs
+++ b/src/keepass2android/app/App.cs
@@ -394,10 +394,12 @@ namespace keepass2android
_fileStorages = new List
{
#if !EXCLUDE_JAVAFILESTORAGE
+#if !NoNet
new DropboxFileStorage(Application.Context, this),
new DropboxAppFolderFileStorage(Application.Context, this),
new GoogleDriveFileStorage(Application.Context, this),
new SkyDriveFileStorage(Application.Context, this),
+#endif
#endif
new BuiltInFileStorage(this)
};
diff --git a/src/keepass2android/fileselect/FileSelectActivity.cs b/src/keepass2android/fileselect/FileSelectActivity.cs
index 613bfac0..34932466 100644
--- a/src/keepass2android/fileselect/FileSelectActivity.cs
+++ b/src/keepass2android/fileselect/FileSelectActivity.cs
@@ -98,6 +98,13 @@ namespace keepass2android
{
SetContentView(Resource.Layout.file_selection_no_recent);
_fileSelectButtons = (view.FileSelectButtons)FindViewById(Resource.Id.file_select);
+#if NoNet
+ ImageView imgView = FindViewById(Resource.Id.imglogo) as ImageView;
+ if (imgView != null)
+ {
+ imgView.SetImageDrawable(Resources.GetDrawable(Resource.Drawable.ic_keepass2android_nonet));
+ }
+#endif
}
@@ -198,6 +205,7 @@ namespace keepass2android
TextView textView = (TextView)view;
IOConnectionInfo ioc = new IOConnectionInfo {Path = path};
textView.Text = app.GetFileStorage(ioc).GetDisplayName(ioc);
+ textView.Tag = ioc.Path;
return true;
}
@@ -376,7 +384,7 @@ namespace keepass2android
string fileProviderAuthority = FileChooserFileProvider.TheAuthority;
if (defaultPath.StartsWith("file://"))
{
- fileProviderAuthority = "keepass2android.keepass2android.android-filechooser.localfile";
+ fileProviderAuthority = PackageName+".android-filechooser.localfile";
}
Intent i = Keepass2android.Kp2afilechooser.Kp2aFileChooserBridge.GetLaunchFileChooserIntent(this, fileProviderAuthority,
defaultPath);
@@ -502,7 +510,7 @@ namespace keepass2android
AdapterView.AdapterContextMenuInfo acmi = (AdapterView.AdapterContextMenuInfo) item.MenuInfo;
TextView tv = (TextView) acmi.TargetView;
- String filename = tv.Text;
+ String filename = (string) tv.Tag;
_dbHelper.DeleteFile(filename);
RefreshList();
diff --git a/src/keepass2android/keepass2android.csproj b/src/keepass2android/keepass2android.csproj
index 6f20ace0..7e559988 100644
--- a/src/keepass2android/keepass2android.csproj
+++ b/src/keepass2android/keepass2android.csproj
@@ -123,6 +123,7 @@
+
@@ -900,4 +901,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/keepass2android/views/FileStorageView.cs b/src/keepass2android/views/FileStorageView.cs
index 9a4f9c91..ad999b99 100644
--- a/src/keepass2android/views/FileStorageView.cs
+++ b/src/keepass2android/views/FileStorageView.cs
@@ -16,18 +16,11 @@ This file is part of Keepass2Android, Copyright 2013 Philipp Crocoll. This file
*/
using System;
using Android.App;
-using Android.Graphics;
using Android.Graphics.Drawables;
-using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
-using KeePassLib;
using Android.Text;
-using Android.Text.Style;
-using Android.Preferences;
-using keepass2android.Io;
-using keepass2android.views;
namespace keepass2android.view
{
diff --git a/src/keepass2android/views/FileStorageViewKp2a.cs b/src/keepass2android/views/FileStorageViewKp2a.cs
new file mode 100644
index 00000000..ad770fe9
--- /dev/null
+++ b/src/keepass2android/views/FileStorageViewKp2a.cs
@@ -0,0 +1,40 @@
+using System;
+using Android.App;
+using Android.Runtime;
+using Android.Views;
+
+namespace keepass2android.view
+{
+ public sealed class FileStorageViewKp2a: ClickView
+ {
+ public FileStorageViewKp2a(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
+ {
+ }
+
+ public FileStorageViewKp2a(Activity activity)
+ : base(activity)
+ {
+ View ev = Inflate(activity, Resource.Layout.filestorage_selection_listitem_kp2a, null);
+ LayoutParams lp = new LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.WrapContent);
+
+ AddView(ev, lp);
+
+ }
+
+
+ public override void OnClick()
+ {
+
+ }
+
+
+ public override void OnCreateMenu(IContextMenu menu, IContextMenuContextMenuInfo menuInfo)
+ {
+ }
+
+ public override bool OnContextItemSelected(IMenuItem item)
+ {
+ return false;
+ }
+ }
+}
\ No newline at end of file