Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc9d6a49 authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun Committed by Automerger Merge Worker
Browse files

Merge "Solve NPE." into tm-qpr-dev am: 9748eeda am: 1eca45e5 am: ccd99369

parents 24897f67 ccd99369
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -189,10 +189,12 @@ public interface QSTile {

        /** Get the text for secondaryLabel. */
        public String getSecondaryLabel(String stateText) {
            if (TextUtils.isEmpty(secondaryLabel)) {
            // Use a local reference as the value might change from other threads
            CharSequence localSecondaryLabel = secondaryLabel;
            if (TextUtils.isEmpty(localSecondaryLabel)) {
                return stateText;
            }
            return secondaryLabel.toString();
            return localSecondaryLabel.toString();
        }

        public boolean copyTo(State other) {