Remove advanced category if no preference

Test: In debug mode, turn off all the configs for advanced category

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I52ea0905b9d4f03a57b4849e5b575bc5e508dd2d
This commit is contained in:
Taesu Lee
2020-06-26 19:25:05 +09:00
parent 8926653a98
commit 392850a825
@@ -190,6 +190,10 @@ public class PerSubscriptionSettingsActivity extends BugleActionBarActivity {
deliveryReportsPreference.setEnabled(false); deliveryReportsPreference.setEnabled(false);
} }
} }
if (advancedCategory.getPreferenceCount() == 0) {
getPreferenceScreen().removePreference(advancedCategory);
}
} }
private boolean isCellBroadcastAppLinkEnabled() { private boolean isCellBroadcastAppLinkEnabled() {