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:
Ahaan Ugale
2021-02-28 22:12:18 -08:00
parent 834d2f5cea
commit d3e91ddd32
4 changed files with 62 additions and 1 deletions

View File

@@ -26,6 +26,11 @@
android:label="Autofill Settings"
android:exported="true"/>
<activity
android:name=".PasswordsActivity"
android:label="Saved Passwords"
android:exported="true"/>
<activity android:name=".AttributionDialogActivity"
android:label="Autofill Attribution"
android:theme="@android:style/Theme.Material.Light.Dialog.NoActionBar"/>

View 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>

View File

@@ -15,7 +15,9 @@
-->
<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.chrome.beta" android:maxLongVersionCode="1000000000" />
</autofill-service>

View File

@@ -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);
}
}