diff --git a/res/drawable/homepage_highlighted_item_background.xml b/res/drawable/homepage_highlighted_item_background.xml index 7e0dea546f3..4656a46aa5c 100644 --- a/res/drawable/homepage_highlighted_item_background.xml +++ b/res/drawable/homepage_highlighted_item_background.xml @@ -14,10 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 7e9b4d74482..976ba55e34b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1075,7 +1075,11 @@ Using face or fingerprint - Hand the phone back to your parent + Hand the tablet back to your parent + + Hand the device back to your parent + + Hand the phone back to your parent OK diff --git a/src/com/android/settings/applications/manageapplications/ApplicationViewHolder.java b/src/com/android/settings/applications/manageapplications/ApplicationViewHolder.java index b91057865e4..d1d286de6ca 100644 --- a/src/com/android/settings/applications/manageapplications/ApplicationViewHolder.java +++ b/src/com/android/settings/applications/manageapplications/ApplicationViewHolder.java @@ -95,10 +95,17 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder { void setSummary(CharSequence summary) { mSummary.setText(summary); + updateSummaryVisibility(); } void setSummary(@StringRes int summary) { mSummary.setText(summary); + updateSummaryVisibility(); + } + + private void updateSummaryVisibility() { + // Hide an empty summary and then title will be vertically centered. + mSummary.setVisibility(TextUtils.isEmpty(mSummary.getText()) ? View.GONE : View.VISIBLE); } void setEnabled(boolean isEnabled) {