InlineFillService: Add a passwords settings activity.
This will be linked to from system settings. Bug: 169455298 Test: manual Change-Id: Id0ee7f0b5641c4be02e9b02d1d6bf7d1a8a6ef37
This commit is contained in:
@@ -26,6 +26,11 @@
|
|||||||
android:label="Autofill Settings"
|
android:label="Autofill Settings"
|
||||||
android:exported="true"/>
|
android:exported="true"/>
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".PasswordsActivity"
|
||||||
|
android:label="Saved Passwords"
|
||||||
|
android:exported="true"/>
|
||||||
|
|
||||||
<activity android:name=".AttributionDialogActivity"
|
<activity android:name=".AttributionDialogActivity"
|
||||||
android:label="Autofill Attribution"
|
android:label="Autofill Attribution"
|
||||||
android:theme="@android:style/Theme.Material.Light.Dialog.NoActionBar"/>
|
android:theme="@android:style/Theme.Material.Light.Dialog.NoActionBar"/>
|
||||||
|
|||||||
26
samples/InlineFillService/res/layout/passwords_activity.xml
Normal file
26
samples/InlineFillService/res/layout/passwords_activity.xml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2021 The Android Open Source Project
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:text="passwords"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
</TextView>
|
||||||
|
</LinearLayout>
|
||||||
@@ -15,7 +15,9 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<autofill-service xmlns:android="http://schemas.android.com/apk/res/android"
|
<autofill-service xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:supportsInlineSuggestions="true">
|
android:supportsInlineSuggestions="true"
|
||||||
|
android:settingsActivity="com.example.android.inlinefillservice.SettingsActivity"
|
||||||
|
android:passwordsActivity="com.example.android.inlinefillservice.PasswordsActivity">
|
||||||
<compatibility-package android:name="com.android.chrome" android:maxLongVersionCode="1000000000" />
|
<compatibility-package android:name="com.android.chrome" android:maxLongVersionCode="1000000000" />
|
||||||
<compatibility-package android:name="com.chrome.beta" android:maxLongVersionCode="1000000000" />
|
<compatibility-package android:name="com.chrome.beta" android:maxLongVersionCode="1000000000" />
|
||||||
</autofill-service>
|
</autofill-service>
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2021 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.example.android.inlinefillservice;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
public class PasswordsActivity extends Activity {
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.passwords_activity);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user