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

Commit b0e06495 authored by Josh Guilfoyle's avatar Josh Guilfoyle
Browse files

Improved formatting of CustomTheme objects.

Change-Id: Ic5179ed51b2ad6f66da801beb30fbde2a248fc5b
parent e6a70d6f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.content.res;

import android.os.SystemProperties;
import android.text.TextUtils;

/**
 * @hide
@@ -73,12 +74,14 @@ public final class CustomTheme implements Cloneable {
    @Override
    public final String toString() {
        StringBuilder result = new StringBuilder();
        result.append(mThemeId);
        result.append("_");
        if (mThemePackageName != null && mThemePackageName.length() > 0){
        if (!TextUtils.isEmpty(mThemePackageName) && !TextUtils.isEmpty(mThemeId)) {
            result.append(mThemePackageName);
            result.append('(');
            result.append(mThemeId);
            result.append(')');
        } else {
            result.append("system");
        }

        return result.toString();
    }