Merge branch 'Branch_1.0.0'

Conflicts:
	src/java/KP2ASoftkeyboard_AS/.idea/workspace.xml
This commit is contained in:
Philipp Crocoll 2016-02-16 11:58:10 +01:00
commit 2dcc53c32f
7 changed files with 14 additions and 2208 deletions

View File

@ -126,6 +126,10 @@
<Compile Include="Utils\Spr\SprEngine.PickChars.cs" /> <Compile Include="Utils\Spr\SprEngine.PickChars.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\JavaFileStorageBindings\JavaFileStorageBindings.csproj">
<Project>{48574278-4779-4b3a-a9e4-9cf1bc285d0b}</Project>
<Name>JavaFileStorageBindings</Name>
</ProjectReference>
<ProjectReference Include="..\KeePassLib2Android\KeePassLib2Android.csproj"> <ProjectReference Include="..\KeePassLib2Android\KeePassLib2Android.csproj">
<Project>{545B4A6B-8BBA-4FBE-92FC-4AC060122A54}</Project> <Project>{545B4A6B-8BBA-4FBE-92FC-4AC060122A54}</Project>
<Name>KeePassLib2Android</Name> <Name>KeePassLib2Android</Name>

File diff suppressed because it is too large Load Diff

View File

@ -39,6 +39,7 @@ using KeePassLib.Security;
using KeePassLib.Utility; using KeePassLib.Utility;
using Keepass2android.Pluginsdk; using Keepass2android.Pluginsdk;
using keepass2android.Io; using keepass2android.Io;
using KeePass.Util.Spr;
using Uri = Android.Net.Uri; using Uri = Android.Net.Uri;
namespace keepass2android namespace keepass2android
@ -341,7 +342,6 @@ namespace keepass2android
_appTask = AppTask.GetTaskInOnCreate(savedInstanceState, Intent); _appTask = AppTask.GetTaskInOnCreate(savedInstanceState, Intent);
Entry = db.Entries[uuid]; Entry = db.Entries[uuid];
Android.Util.Log.Debug("KP2A", "Notes: " + Entry.Strings.ReadSafe(PwDefs.NotesField));
// Refresh Menu contents in case onCreateMenuOptions was called before Entry was set // Refresh Menu contents in case onCreateMenuOptions was called before Entry was set
ActivityCompat.InvalidateOptionsMenu(this); ActivityCompat.InvalidateOptionsMenu(this);
@ -836,7 +836,9 @@ namespace keepass2android
private void PopulateStandardText(int viewId, int containerViewId, String key) private void PopulateStandardText(int viewId, int containerViewId, String key)
{ {
PopulateText(viewId, containerViewId, Entry.Strings.ReadSafe(key)); String value = Entry.Strings.ReadSafe(key);
value = SprEngine.Compile(value, new SprContext(Entry, App.Kp2a.GetDb().KpDatabase, SprCompileFlags.All));
PopulateText(viewId, containerViewId, value);
_stringViews.Add(key, new StandardStringView(viewId, containerViewId, this)); _stringViews.Add(key, new StandardStringView(viewId, containerViewId, this));
} }

View File

@ -84,6 +84,9 @@ namespace keepass2android
public static void CopyToClipboard(Context context, String text) { public static void CopyToClipboard(Context context, String text) {
Android.Text.ClipboardManager clipboard = (Android.Text.ClipboardManager) context.GetSystemService(Context.ClipboardService); Android.Text.ClipboardManager clipboard = (Android.Text.ClipboardManager) context.GetSystemService(Context.ClipboardService);
clipboard.Text = text; clipboard.Text = text;
//some devices don't accept empty strings. Replace with *** then.
if (clipboard.Text == "")
clipboard.Text = "***";
} }
public static void GotoUrl(Context context, String url) { public static void GotoUrl(Context context, String url) {

View File

@ -24,6 +24,7 @@ using KeePassLib;
using Android.Text; using Android.Text;
using Android.Text.Style; using Android.Text.Style;
using Android.Preferences; using Android.Preferences;
using KeePass.Util.Spr;
namespace keepass2android.view namespace keepass2android.view
@ -134,6 +135,7 @@ namespace keepass2android.view
_textView.SetTextColor(new Color((int)_defaultTextColor)); _textView.SetTextColor(new Color((int)_defaultTextColor));
String detail = pw.Strings.ReadSafe(PwDefs.UserNameField); String detail = pw.Strings.ReadSafe(PwDefs.UserNameField);
detail = SprEngine.Compile(detail, new SprContext(_entry, App.Kp2a.GetDb().KpDatabase, SprCompileFlags.All));
if ((_showDetail == false) || (String.IsNullOrEmpty(detail))) if ((_showDetail == false) || (String.IsNullOrEmpty(detail)))
{ {