Preview Release 0.9.2a

This commit is contained in:
Philipp Crocoll 2013-11-13 05:18:48 +01:00
parent 38572cf2a6
commit ba6b848e63
7 changed files with 4760 additions and 1885 deletions

View File

@ -22,6 +22,7 @@ namespace keepass2android
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
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),
ctx.GetString(Resource.String.ChangeLog_0_8_6),

View File

@ -1,5 +1,5 @@
<?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" />
<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">

File diff suppressed because it is too large Load Diff

View File

@ -108,6 +108,10 @@
<item>30000</item>
<item>60000</item>
<item>300000</item>
<item>600000</item>
<item>900000</item>
<item>1800000</item>
<item>3600000</item>
<item>-1</item>
</string-array>
<string name="list_size_default">20</string>

View File

@ -345,6 +345,13 @@
<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">
<b>Version 0.9.1</b>\n
* Integrated SkyDrive support (Keepass2Android regular edition only)\n
@ -439,6 +446,10 @@ Initial public release
<item>30 seconds</item>
<item>1 minute</item>
<item>5 minutes</item>
<item>10 minutes</item>
<item>15 minutes</item>
<item>30 minutes</item>
<item>1 hour</item>
<item>Never</item>
</string-array>
<string-array name="list_size_options">

View File

@ -58,7 +58,7 @@ namespace keepass2android
const string BundleKeyRecentMode = "RecentMode";
private FileDbHelper _DbHelper;
private FileDbHelper _dbHelper;
private bool _recentMode;
view.FileSelectButtons _fileSelectButtons;
@ -84,7 +84,7 @@ namespace keepass2android
}
_DbHelper = App.Kp2a.FileDbHelper;
_dbHelper = App.Kp2a.FileDbHelper;
if (ShowRecentFiles())
{
_recentMode = true;
@ -160,10 +160,10 @@ namespace keepass2android
{
if (!RememberRecentFiles())
{
_DbHelper.DeleteAll();
_dbHelper.DeleteAll();
}
return _DbHelper.HasRecentFiles();
return _dbHelper.HasRecentFiles();
}
private bool RememberRecentFiles()
@ -196,7 +196,7 @@ namespace keepass2android
{
String path = cursor.GetString(columnIndex);
TextView textView = (TextView)view;
IOConnectionInfo ioc = new IOConnectionInfo() {Path = path};
IOConnectionInfo ioc = new IOConnectionInfo {Path = path};
textView.Text = app.GetFileStorage(ioc).GetDisplayName(ioc);
return true;
}
@ -208,7 +208,7 @@ namespace keepass2android
private void FillData()
{
// 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);
// 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) {
base.OnListItemClick(l, v, position, id);
Android.Database.ICursor cursor = _DbHelper.FetchFile(id);
ICursor cursor = _dbHelper.FetchFile(id);
StartManagingCursor(cursor);
IOConnectionInfo ioc = _DbHelper.CursorToIoc(cursor);
IOConnectionInfo ioc = _dbHelper.CursorToIoc(cursor);
App.Kp2a.GetFileStorage(ioc)
.PrepareFileUsage(new FileStorageSetupInitiatorActivity(this, OnActivityResult, null), ioc, 0, false);
@ -372,6 +372,8 @@ namespace keepass2android
PasswordActivity.SetIoConnectionFromIntent(ioc, data);
#if !EXCLUDE_FILECHOOSER
StartFileChooser(ioc.Path);
#else
LaunchPasswordActivityForIoc(new IOConnectionInfo { Path = "/mnt/sdcard/keepass/keepass.kdbx"});
#endif
}
if ((resultCode == Result.Canceled) && (data != null) && (data.HasExtra("EXTRA_ERROR_MESSAGE")))
@ -430,12 +432,12 @@ namespace keepass2android
else
{
//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);
filesCursor.MoveToFirst();
IOConnectionInfo ioc = _DbHelper.CursorToIoc(filesCursor);
IOConnectionInfo ioc = _dbHelper.CursorToIoc(filesCursor);
if (App.Kp2a.GetFileStorage(ioc).RequiresSetup(ioc) == false)
{
LaunchPasswordActivityForIoc(ioc);
@ -513,7 +515,7 @@ namespace keepass2android
TextView tv = (TextView) acmi.TargetView;
String filename = tv.Text;
_DbHelper.DeleteFile(filename);
_dbHelper.DeleteFile(filename);
RefreshList();
@ -526,7 +528,7 @@ namespace keepass2android
private void RefreshList() {
CursorAdapter ca = (CursorAdapter) ListAdapter;
Android.Database.ICursor cursor = ca.Cursor;
ICursor cursor = ca.Cursor;
cursor.Requery();
}
}