summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/dialer/widget/TextViewPreference.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/dialer/widget/TextViewPreference.java b/java/com/android/dialer/widget/TextViewPreference.java
index 2c1885c4d..1c479d404 100644
--- a/java/com/android/dialer/widget/TextViewPreference.java
+++ b/java/com/android/dialer/widget/TextViewPreference.java
@@ -108,6 +108,8 @@ public class TextViewPreference extends Preference {
setTitle(textResourceId);
} else if (text != null) {
setTitle(text);
+ } else if (getTitleRes() != 0) {
+ setTitle(getTitleRes());
}
}