Add InstantAppDomainsPreference for Spa
To try: 1. adb shell am start -n com.android.settings/.spa.SpaActivity 2. Go to Apps -> All apps -> [One Instant App] -> Supported links Bug: 236346018 Test: Unit test Test: Manually with Settings App Change-Id: I344ddb9c2f3dbc47d38554bf45f04ca7c26c0e5f
This commit is contained in:
@@ -23,7 +23,6 @@ import android.app.settings.SettingsEnums;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import android.util.ArraySet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
@@ -36,6 +35,8 @@ import com.android.settings.Utils;
|
||||
import com.android.settingslib.widget.FooterPreference;
|
||||
import com.android.settingslib.widget.SelectorWithWidgetPreference;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Display the Open Supported Links page. Allow users choose what kind supported links they need.
|
||||
*/
|
||||
@@ -195,7 +196,7 @@ public class OpenSupportedLinks extends AppInfoWithHeader implements
|
||||
|
||||
@VisibleForTesting
|
||||
void addLinksToFooter(FooterPreference footer) {
|
||||
final ArraySet<String> result = Utils.getHandledDomains(mPackageManager, mPackageName);
|
||||
final Set<String> result = Utils.getHandledDomains(mPackageManager, mPackageName);
|
||||
if (result.isEmpty()) {
|
||||
Log.w(TAG, "Can't find any app links.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user