diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 43af6dfa426..7199dd598ed 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -107,8 +107,8 @@ - - + + - + diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java index 352f0ff333f..91ad9379f66 100644 --- a/src/com/android/settings/SettingsActivity.java +++ b/src/com/android/settings/SettingsActivity.java @@ -29,6 +29,7 @@ import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; +import android.content.res.Resources; import android.content.res.Resources.Theme; import android.graphics.drawable.Icon; import android.os.AsyncTask; @@ -364,13 +365,13 @@ public class SettingsActivity extends SettingsBaseActivity // It's a deep link intent, SettingsHomepageActivity will set SplitPairRule and start it. final Intent trampolineIntent = - new Intent(android.provider.Settings.ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK); + new Intent(android.provider.Settings.ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY); trampolineIntent.replaceExtras(intent); trampolineIntent.putExtra( - android.provider.Settings.EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_URI, + android.provider.Settings.EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_INTENT_URI, intent.toUri(Intent.URI_INTENT_SCHEME)); trampolineIntent.putExtra( - android.provider.Settings.EXTRA_SETTINGS_LARGE_SCREEN_HIGHLIGHT_MENU_KEY, + android.provider.Settings.EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_HIGHLIGHT_MENU_KEY, mHighlightMenuKey); trampolineIntent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT); startActivity(trampolineIntent); @@ -471,6 +472,9 @@ public class SettingsActivity extends SettingsBaseActivity return; } catch (NameNotFoundException e) { Log.w(LOG_TAG, "Could not find package" + initialTitleResPackageName); + } catch (Resources.NotFoundException resourceNotFound) { + Log.w(LOG_TAG, + "Could not find title resource in " + initialTitleResPackageName); } } else { setTitle(mInitialTitleResId); diff --git a/src/com/android/settings/homepage/SettingsHomepageActivity.java b/src/com/android/settings/homepage/SettingsHomepageActivity.java index 471b1a4d1e2..ec3589c77c3 100644 --- a/src/com/android/settings/homepage/SettingsHomepageActivity.java +++ b/src/com/android/settings/homepage/SettingsHomepageActivity.java @@ -16,9 +16,9 @@ package com.android.settings.homepage; -import static android.provider.Settings.ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK; -import static android.provider.Settings.EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_URI; -import static android.provider.Settings.EXTRA_SETTINGS_LARGE_SCREEN_HIGHLIGHT_MENU_KEY; +import static android.provider.Settings.ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY; +import static android.provider.Settings.EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_HIGHLIGHT_MENU_KEY; +import static android.provider.Settings.EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_INTENT_URI; import android.animation.LayoutTransition; import android.app.ActivityManager; @@ -191,14 +191,14 @@ public class SettingsHomepageActivity extends FragmentActivity implements final Intent intent = getIntent(); if (intent == null || !TextUtils.equals(intent.getAction(), - ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK)) { + ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY)) { return; } final String intentUriString = intent.getStringExtra( - EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_URI); + EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_INTENT_URI); if (TextUtils.isEmpty(intentUriString)) { - Log.e(TAG, "No EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_URI to deep link"); + Log.e(TAG, "No EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_INTENT_URI to deep link"); finish(); return; } @@ -250,9 +250,9 @@ public class SettingsHomepageActivity extends FragmentActivity implements private String getHighlightMenuKey() { final Intent intent = getIntent(); if (intent != null && TextUtils.equals(intent.getAction(), - ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK)) { + ACTION_SETTINGS_EMBED_DEEP_LINK_ACTIVITY)) { final String menuKey = intent.getStringExtra( - EXTRA_SETTINGS_LARGE_SCREEN_HIGHLIGHT_MENU_KEY); + EXTRA_SETTINGS_EMBEDDED_DEEP_LINK_HIGHLIGHT_MENU_KEY); if (!TextUtils.isEmpty(menuKey)) { return menuKey; } diff --git a/src/com/android/settings/notification/history/NotificationStation.java b/src/com/android/settings/notification/history/NotificationStation.java index fe8b1683a97..fa3a7b2d0e9 100644 --- a/src/com/android/settings/notification/history/NotificationStation.java +++ b/src/com/android/settings/notification/history/NotificationStation.java @@ -436,7 +436,7 @@ public class NotificationStation extends SettingsPreferenceFragment { } mRanking.getRanking(info.key, rank); info.alerted = rank.getLastAudiblyAlertedMillis() > 0; - info.visuallyInterruptive = rank.visuallyInterruptive(); + info.visuallyInterruptive = rank.isTextChanged(); info.channel = rank.getChannel(); info.rankingExtra = generateRankingExtraText(info); } diff --git a/tests/robotests/Android.bp b/tests/robotests/Android.bp index 43bcec7659a..bc25377ed7d 100644 --- a/tests/robotests/Android.bp +++ b/tests/robotests/Android.bp @@ -60,6 +60,10 @@ android_app { "ims-common", ], uses_libs: ["org.apache.http.legacy"], + optional_uses_libs: [ + "androidx.window.extensions", + "androidx.window.sidecar", + ], } //############################################################