mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-25 02:32:26 -05:00
Preview Release 0.9.2a
This commit is contained in:
parent
38572cf2a6
commit
ba6b848e63
Binary file not shown.
@ -22,6 +22,7 @@ namespace keepass2android
|
|||||||
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
|
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
|
||||||
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
|
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
|
||||||
String[] changeLog = {
|
String[] changeLog = {
|
||||||
|
ctx.GetString(Resource.String.ChangeLog_0_9_2),
|
||||||
ctx.GetString(Resource.String.ChangeLog_0_9_1),
|
ctx.GetString(Resource.String.ChangeLog_0_9_1),
|
||||||
ctx.GetString(Resource.String.ChangeLog_0_9),
|
ctx.GetString(Resource.String.ChangeLog_0_9),
|
||||||
ctx.GetString(Resource.String.ChangeLog_0_8_6),
|
ctx.GetString(Resource.String.ChangeLog_0_8_6),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="27" android:versionName="0.9.1" package="keepass2android.keepass2android" android:installLocation="auto">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="27" android:versionName="0.9.2a" package="keepass2android.keepass2android" android:installLocation="auto">
|
||||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" />
|
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" />
|
||||||
<permission android:description="@string/permission_desc" android:icon="@drawable/ic_launcher" android:label="KP2A internal file browsing" android:name="keepass2android.keepass2android.permission.KP2aInternalFileBrowsing" android:protectionLevel="signature" />
|
<permission android:description="@string/permission_desc" android:icon="@drawable/ic_launcher" android:label="KP2A internal file browsing" android:name="keepass2android.keepass2android.permission.KP2aInternalFileBrowsing" android:protectionLevel="signature" />
|
||||||
<application android:label="keepass2android" android:icon="@drawable/ic_launcher">
|
<application android:label="keepass2android" android:icon="@drawable/ic_launcher">
|
||||||
|
6599
src/keepass2android/Resources/Resource.designer.cs
generated
6599
src/keepass2android/Resources/Resource.designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -108,6 +108,10 @@
|
|||||||
<item>30000</item>
|
<item>30000</item>
|
||||||
<item>60000</item>
|
<item>60000</item>
|
||||||
<item>300000</item>
|
<item>300000</item>
|
||||||
|
<item>600000</item>
|
||||||
|
<item>900000</item>
|
||||||
|
<item>1800000</item>
|
||||||
|
<item>3600000</item>
|
||||||
<item>-1</item>
|
<item>-1</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string name="list_size_default">20</string>
|
<string name="list_size_default">20</string>
|
||||||
|
@ -345,6 +345,13 @@
|
|||||||
|
|
||||||
<string name="ChangeLog_title">Change log</string>
|
<string name="ChangeLog_title">Change log</string>
|
||||||
|
|
||||||
|
<string name="ChangeLog_0_9_2">
|
||||||
|
<b>Version 0.9.2a (preview)</b>\n
|
||||||
|
* Several UI improvements\n
|
||||||
|
* Integrated Keepass 2.24 library\n
|
||||||
|
* Added option to kill the app process (see settings)\n
|
||||||
|
</string>
|
||||||
|
|
||||||
<string name="ChangeLog_0_9_1">
|
<string name="ChangeLog_0_9_1">
|
||||||
<b>Version 0.9.1</b>\n
|
<b>Version 0.9.1</b>\n
|
||||||
* Integrated SkyDrive support (Keepass2Android regular edition only)\n
|
* Integrated SkyDrive support (Keepass2Android regular edition only)\n
|
||||||
@ -439,6 +446,10 @@ Initial public release
|
|||||||
<item>30 seconds</item>
|
<item>30 seconds</item>
|
||||||
<item>1 minute</item>
|
<item>1 minute</item>
|
||||||
<item>5 minutes</item>
|
<item>5 minutes</item>
|
||||||
|
<item>10 minutes</item>
|
||||||
|
<item>15 minutes</item>
|
||||||
|
<item>30 minutes</item>
|
||||||
|
<item>1 hour</item>
|
||||||
<item>Never</item>
|
<item>Never</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<string-array name="list_size_options">
|
<string-array name="list_size_options">
|
||||||
|
@ -58,7 +58,7 @@ namespace keepass2android
|
|||||||
|
|
||||||
const string BundleKeyRecentMode = "RecentMode";
|
const string BundleKeyRecentMode = "RecentMode";
|
||||||
|
|
||||||
private FileDbHelper _DbHelper;
|
private FileDbHelper _dbHelper;
|
||||||
|
|
||||||
private bool _recentMode;
|
private bool _recentMode;
|
||||||
view.FileSelectButtons _fileSelectButtons;
|
view.FileSelectButtons _fileSelectButtons;
|
||||||
@ -84,7 +84,7 @@ namespace keepass2android
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_DbHelper = App.Kp2a.FileDbHelper;
|
_dbHelper = App.Kp2a.FileDbHelper;
|
||||||
if (ShowRecentFiles())
|
if (ShowRecentFiles())
|
||||||
{
|
{
|
||||||
_recentMode = true;
|
_recentMode = true;
|
||||||
@ -160,10 +160,10 @@ namespace keepass2android
|
|||||||
{
|
{
|
||||||
if (!RememberRecentFiles())
|
if (!RememberRecentFiles())
|
||||||
{
|
{
|
||||||
_DbHelper.DeleteAll();
|
_dbHelper.DeleteAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
return _DbHelper.HasRecentFiles();
|
return _dbHelper.HasRecentFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool RememberRecentFiles()
|
private bool RememberRecentFiles()
|
||||||
@ -196,7 +196,7 @@ namespace keepass2android
|
|||||||
{
|
{
|
||||||
String path = cursor.GetString(columnIndex);
|
String path = cursor.GetString(columnIndex);
|
||||||
TextView textView = (TextView)view;
|
TextView textView = (TextView)view;
|
||||||
IOConnectionInfo ioc = new IOConnectionInfo() {Path = path};
|
IOConnectionInfo ioc = new IOConnectionInfo {Path = path};
|
||||||
textView.Text = app.GetFileStorage(ioc).GetDisplayName(ioc);
|
textView.Text = app.GetFileStorage(ioc).GetDisplayName(ioc);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -208,7 +208,7 @@ namespace keepass2android
|
|||||||
private void FillData()
|
private void FillData()
|
||||||
{
|
{
|
||||||
// Get all of the rows from the database and create the item list
|
// Get all of the rows from the database and create the item list
|
||||||
Android.Database.ICursor filesCursor = _DbHelper.FetchAllFiles();
|
ICursor filesCursor = _dbHelper.FetchAllFiles();
|
||||||
StartManagingCursor(filesCursor);
|
StartManagingCursor(filesCursor);
|
||||||
|
|
||||||
// Create an array to specify the fields we want to display in the list
|
// Create an array to specify the fields we want to display in the list
|
||||||
@ -276,10 +276,10 @@ namespace keepass2android
|
|||||||
protected override void OnListItemClick(ListView l, View v, int position, long id) {
|
protected override void OnListItemClick(ListView l, View v, int position, long id) {
|
||||||
base.OnListItemClick(l, v, position, id);
|
base.OnListItemClick(l, v, position, id);
|
||||||
|
|
||||||
Android.Database.ICursor cursor = _DbHelper.FetchFile(id);
|
ICursor cursor = _dbHelper.FetchFile(id);
|
||||||
StartManagingCursor(cursor);
|
StartManagingCursor(cursor);
|
||||||
|
|
||||||
IOConnectionInfo ioc = _DbHelper.CursorToIoc(cursor);
|
IOConnectionInfo ioc = _dbHelper.CursorToIoc(cursor);
|
||||||
|
|
||||||
App.Kp2a.GetFileStorage(ioc)
|
App.Kp2a.GetFileStorage(ioc)
|
||||||
.PrepareFileUsage(new FileStorageSetupInitiatorActivity(this, OnActivityResult, null), ioc, 0, false);
|
.PrepareFileUsage(new FileStorageSetupInitiatorActivity(this, OnActivityResult, null), ioc, 0, false);
|
||||||
@ -372,6 +372,8 @@ namespace keepass2android
|
|||||||
PasswordActivity.SetIoConnectionFromIntent(ioc, data);
|
PasswordActivity.SetIoConnectionFromIntent(ioc, data);
|
||||||
#if !EXCLUDE_FILECHOOSER
|
#if !EXCLUDE_FILECHOOSER
|
||||||
StartFileChooser(ioc.Path);
|
StartFileChooser(ioc.Path);
|
||||||
|
#else
|
||||||
|
LaunchPasswordActivityForIoc(new IOConnectionInfo { Path = "/mnt/sdcard/keepass/keepass.kdbx"});
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if ((resultCode == Result.Canceled) && (data != null) && (data.HasExtra("EXTRA_ERROR_MESSAGE")))
|
if ((resultCode == Result.Canceled) && (data != null) && (data.HasExtra("EXTRA_ERROR_MESSAGE")))
|
||||||
@ -430,12 +432,12 @@ namespace keepass2android
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//if no database is loaded: load the most recent database
|
//if no database is loaded: load the most recent database
|
||||||
if ( (Intent.GetBooleanExtra(NoForwardToPasswordActivity, false)==false) && _DbHelper.HasRecentFiles())
|
if ( (Intent.GetBooleanExtra(NoForwardToPasswordActivity, false)==false) && _dbHelper.HasRecentFiles())
|
||||||
{
|
{
|
||||||
Android.Database.ICursor filesCursor = _DbHelper.FetchAllFiles();
|
ICursor filesCursor = _dbHelper.FetchAllFiles();
|
||||||
StartManagingCursor(filesCursor);
|
StartManagingCursor(filesCursor);
|
||||||
filesCursor.MoveToFirst();
|
filesCursor.MoveToFirst();
|
||||||
IOConnectionInfo ioc = _DbHelper.CursorToIoc(filesCursor);
|
IOConnectionInfo ioc = _dbHelper.CursorToIoc(filesCursor);
|
||||||
if (App.Kp2a.GetFileStorage(ioc).RequiresSetup(ioc) == false)
|
if (App.Kp2a.GetFileStorage(ioc).RequiresSetup(ioc) == false)
|
||||||
{
|
{
|
||||||
LaunchPasswordActivityForIoc(ioc);
|
LaunchPasswordActivityForIoc(ioc);
|
||||||
@ -513,7 +515,7 @@ namespace keepass2android
|
|||||||
|
|
||||||
TextView tv = (TextView) acmi.TargetView;
|
TextView tv = (TextView) acmi.TargetView;
|
||||||
String filename = tv.Text;
|
String filename = tv.Text;
|
||||||
_DbHelper.DeleteFile(filename);
|
_dbHelper.DeleteFile(filename);
|
||||||
|
|
||||||
RefreshList();
|
RefreshList();
|
||||||
|
|
||||||
@ -526,7 +528,7 @@ namespace keepass2android
|
|||||||
|
|
||||||
private void RefreshList() {
|
private void RefreshList() {
|
||||||
CursorAdapter ca = (CursorAdapter) ListAdapter;
|
CursorAdapter ca = (CursorAdapter) ListAdapter;
|
||||||
Android.Database.ICursor cursor = ca.Cursor;
|
ICursor cursor = ca.Cursor;
|
||||||
cursor.Requery();
|
cursor.Requery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user