Merge "Hide extra information link when it is empty" into main
This commit is contained in:
@@ -195,6 +195,7 @@ public class SatelliteSetting extends RestrictedDashboardFragment {
|
|||||||
|
|
||||||
final String[] link = new String[1];
|
final String[] link = new String[1];
|
||||||
link[0] = readSatelliteMoreInfoString(mSubId);
|
link[0] = readSatelliteMoreInfoString(mSubId);
|
||||||
|
if (link[0] != null && !link[0].isEmpty()) {
|
||||||
footerPreference.setLearnMoreAction(view -> {
|
footerPreference.setLearnMoreAction(view -> {
|
||||||
if (!link[0].isEmpty()) {
|
if (!link[0].isEmpty()) {
|
||||||
Intent helpIntent = HelpUtils.getHelpIntent(mActivity, link[0],
|
Intent helpIntent = HelpUtils.getHelpIntent(mActivity, link[0],
|
||||||
@@ -206,8 +207,7 @@ public class SatelliteSetting extends RestrictedDashboardFragment {
|
|||||||
});
|
});
|
||||||
footerPreference.setLearnMoreText(
|
footerPreference.setLearnMoreText(
|
||||||
getResources().getString(R.string.more_about_satellite_messaging));
|
getResources().getString(R.string.more_about_satellite_messaging));
|
||||||
|
}
|
||||||
// TODO : b/320467418 add rounded rectangle border line to footer preference.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user