commit | 45cd97eabfecb9e5e99070948b7423be2fd90467 | [log] [tgz] |
---|---|---|
author | Taesu Lee <taesu82.lee@samsung.com> | Fri Jun 26 17:00:47 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jun 26 17:00:47 2020 +0000 |
tree | ef92a5838c1bfff05d3065fe2762cefa4d38bda7 | |
parent | cc4904c89a07d766ef07a4e79baa94fe7e8204fd [diff] | |
parent | 34ebed2bba8c753beaa94803d309dabf99248a5c [diff] |
Remove advanced category if no preference am: 392850a825 am: 34ebed2bba Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1351522 Change-Id: I40e97e119cfefaf90e14efad2760e9e31a46a9b8
diff --git a/src/com/android/messaging/ui/appsettings/PerSubscriptionSettingsActivity.java b/src/com/android/messaging/ui/appsettings/PerSubscriptionSettingsActivity.java index 18a3f47..c2fd473 100644 --- a/src/com/android/messaging/ui/appsettings/PerSubscriptionSettingsActivity.java +++ b/src/com/android/messaging/ui/appsettings/PerSubscriptionSettingsActivity.java
@@ -190,6 +190,10 @@ deliveryReportsPreference.setEnabled(false); } } + + if (advancedCategory.getPreferenceCount() == 0) { + getPreferenceScreen().removePreference(advancedCategory); + } } private boolean isCellBroadcastAppLinkEnabled() {