mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-12-01 13:32:27 -05:00
Merge branch 'Branch_1.0.0-pre7c'
Conflicts: src/java/JavaFileStorage/app/build/outputs/aar/app-debug.aar src/java/KP2ASoftkeyboard_AS/.idea/workspace.xml src/java/KP2ASoftkeyboard_AS/app/build/outputs/aar/app-debug.aar
This commit is contained in:
commit
0e40033d85
@ -115,7 +115,6 @@
|
|||||||
<Compile Include="ProgressTask.cs" />
|
<Compile Include="ProgressTask.cs" />
|
||||||
<Compile Include="PwGroupEqualityFromIdComparer.cs" />
|
<Compile Include="PwGroupEqualityFromIdComparer.cs" />
|
||||||
<Compile Include="PwUuidEqualityComparer.cs" />
|
<Compile Include="PwUuidEqualityComparer.cs" />
|
||||||
<Compile Include="Resources\Resource.Designer.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="SearchDbHelper.cs" />
|
<Compile Include="SearchDbHelper.cs" />
|
||||||
<Compile Include="ProgressDialogStatusLogger.cs" />
|
<Compile Include="ProgressDialogStatusLogger.cs" />
|
||||||
@ -148,16 +147,9 @@
|
|||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config" />
|
<Folder Include="Resources\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||||
<Import Project="..\packages\Xamarin.Insights.1.11.3\build\MonoAndroid10\Xamarin.Insights.targets" Condition="Exists('..\packages\Xamarin.Insights.1.11.3\build\MonoAndroid10\Xamarin.Insights.targets')" />
|
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
|
||||||
<PropertyGroup>
|
|
||||||
<ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Aktivieren Sie die Wiederherstellung von NuGet-Paketen, um die fehlende Datei herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Error Condition="!Exists('..\packages\Xamarin.Insights.1.11.3\build\MonoAndroid10\Xamarin.Insights.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Xamarin.Insights.1.11.3\build\MonoAndroid10\Xamarin.Insights.targets'))" />
|
|
||||||
</Target>
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="" />
|
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -104,8 +104,8 @@
|
|||||||
<orderEntry type="library" exported="" name="httpcore-4.0.1" level="project" />
|
<orderEntry type="library" exported="" name="httpcore-4.0.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="json_simple-1.1" level="project" />
|
<orderEntry type="library" exported="" name="json_simple-1.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="google-http-client-android-1.16.0-rc" level="project" />
|
<orderEntry type="library" exported="" name="google-http-client-android-1.16.0-rc" level="project" />
|
||||||
<orderEntry type="library" exported="" name="gson-2.1" level="project" />
|
|
||||||
<orderEntry type="library" exported="" name="google-http-client-gson-1.20.0" level="project" />
|
<orderEntry type="library" exported="" name="google-http-client-gson-1.20.0" level="project" />
|
||||||
|
<orderEntry type="library" exported="" name="gson-2.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="google-http-client-jackson-1.16.0-rc" level="project" />
|
<orderEntry type="library" exported="" name="google-http-client-jackson-1.16.0-rc" level="project" />
|
||||||
<orderEntry type="library" exported="" name="commons-logging-1.1.1" level="project" />
|
<orderEntry type="library" exported="" name="commons-logging-1.1.1" level="project" />
|
||||||
</component>
|
</component>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="" />
|
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -113,7 +113,8 @@ public class AutoFillService extends AccessibilityService {
|
|||||||
if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED
|
if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED
|
||||||
|| event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED)
|
|| event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED)
|
||||||
{
|
{
|
||||||
android.util.Log.d(_logTag, "event: " + event.getEventType() + ", package = " + event.getPackageName());
|
CharSequence packageName = event.getPackageName();
|
||||||
|
android.util.Log.d(_logTag, "event: " + event.getEventType() + ", package = " + packageName);
|
||||||
if ( "com.android.systemui".equals(event.getPackageName()) )
|
if ( "com.android.systemui".equals(event.getPackageName()) )
|
||||||
{
|
{
|
||||||
android.util.Log.d(_logTag, "return.");
|
android.util.Log.d(_logTag, "return.");
|
||||||
@ -124,6 +125,13 @@ public class AutoFillService extends AccessibilityService {
|
|||||||
android.util.Log.d(_logTag, "no com.android.systemui");
|
android.util.Log.d(_logTag, "no com.android.systemui");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((packageName != null)
|
||||||
|
&& (packageName.toString().startsWith("keepass2android.")))
|
||||||
|
{
|
||||||
|
android.util.Log.d(_logTag, "don't autofill kp2a.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AccessibilityNodeInfo root = getRootInActiveWindow();
|
AccessibilityNodeInfo root = getRootInActiveWindow();
|
||||||
int eventWindowId = event.getWindowId();
|
int eventWindowId = event.getWindowId();
|
||||||
if ((ExistsNodeOrChildren(root, new WindowIdCondition(eventWindowId)) && !ExistsNodeOrChildren(root, new SystemUiCondition())))
|
if ((ExistsNodeOrChildren(root, new WindowIdCondition(eventWindowId)) && !ExistsNodeOrChildren(root, new SystemUiCondition())))
|
||||||
@ -283,7 +291,7 @@ public class AutoFillService extends AccessibilityService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void fillDataInTextField(AccessibilityNodeInfo edit, String value) {
|
private void fillDataInTextField(AccessibilityNodeInfo edit, String value) {
|
||||||
if (value == null)
|
if ((value == null) || (edit == null))
|
||||||
return;
|
return;
|
||||||
Bundle b = new Bundle();
|
Bundle b = new Bundle();
|
||||||
b.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, value);
|
b.putString(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, value);
|
||||||
@ -309,12 +317,15 @@ public class AutoFillService extends AccessibilityService {
|
|||||||
try {
|
try {
|
||||||
uri = new URI(url);
|
uri = new URI(url);
|
||||||
String domain = uri.getHost();
|
String domain = uri.getHost();
|
||||||
|
if (domain == null)
|
||||||
|
return url;
|
||||||
return domain.startsWith("www.") ? domain.substring(4) : domain;
|
return domain.startsWith("www.") ? domain.substring(4) : domain;
|
||||||
} catch (URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
android.util.Log.d(_logTag, "error parsing url: "+ url + e.toString());
|
android.util.Log.d(_logTag, "error parsing url: "+ url + e.toString());
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getLastReceivedCredentialsUser() {
|
private String getLastReceivedCredentialsUser() {
|
||||||
@ -364,9 +375,13 @@ public class AutoFillService extends AccessibilityService {
|
|||||||
if (!urlFields.isEmpty())
|
if (!urlFields.isEmpty())
|
||||||
{
|
{
|
||||||
AccessibilityNodeInfo addressField = urlFields.get(0);
|
AccessibilityNodeInfo addressField = urlFields.get(0);
|
||||||
url = addressField.getText().toString();
|
CharSequence text = addressField.getText();
|
||||||
if (!url.contains("://"))
|
if (text != null)
|
||||||
url = "http://" + url;
|
{
|
||||||
|
url = text.toString();
|
||||||
|
if (!url.contains("://"))
|
||||||
|
url = "http://" + url;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ namespace keepass2android
|
|||||||
AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(ctx, Android.Resource.Style.ThemeHoloLightDialog));
|
AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(ctx, Android.Resource.Style.ThemeHoloLightDialog));
|
||||||
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
|
builder.SetTitle(ctx.GetString(Resource.String.ChangeLog_title));
|
||||||
List<string> changeLog = new List<string>{
|
List<string> changeLog = new List<string>{
|
||||||
|
ctx.GetString(Resource.String.ChangeLog_1_0_0),
|
||||||
ctx.GetString(Resource.String.ChangeLog_0_9_9c),
|
ctx.GetString(Resource.String.ChangeLog_0_9_9c),
|
||||||
ctx.GetString(Resource.String.ChangeLog_0_9_9),
|
ctx.GetString(Resource.String.ChangeLog_0_9_9),
|
||||||
ctx.GetString(Resource.String.ChangeLog_0_9_8c),
|
ctx.GetString(Resource.String.ChangeLog_0_9_8c),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:versionCode="75"
|
android:versionCode="76"
|
||||||
android:versionName="1.0.0 preview 7b"
|
android:versionName="1.0.0 preview 7c"
|
||||||
package="keepass2android.keepass2android"
|
package="keepass2android.keepass2android"
|
||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
|
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
|
||||||
|
@ -313,12 +313,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<Button
|
|
||||||
android:id="@+id/kill_app"
|
|
||||||
android:text="@string/kill_app_label"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:layout_height="wrap_content" />
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/enable_quickunlock_container"
|
android:id="@+id/enable_quickunlock_container"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
@ -364,6 +359,12 @@
|
|||||||
android:background="?android:attr/selectableItemBackground"/>
|
android:background="?android:attr/selectableItemBackground"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/kill_app"
|
||||||
|
android:text="@string/kill_app_label"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
<View
|
<View
|
||||||
android:id="@+id/spacing"
|
android:id="@+id/spacing"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
Loading…
Reference in New Issue
Block a user