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

Commit 0f6c39ce authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Fix settings homescreen for tablets

parent bc0add6a
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -82,11 +82,11 @@ public class HighlightableTopLevelPreferenceAdapter extends PreferenceGroupAdapt
        mTitleColorNormal = Utils.getColorAttrDefaultColor(mContext,
                android.R.attr.textColorPrimary);
        mTitleColorHighlight = Utils.getColorAttrDefaultColor(mContext,
                android.R.attr.textColorPrimaryInverse);
                android.R.attr.textColorPrimary);
        mSummaryColorNormal = Utils.getColorAttrDefaultColor(mContext,
                android.R.attr.textColorSecondary);
        mSummaryColorHighlight = Utils.getColorAttrDefaultColor(mContext,
                android.R.attr.textColorSecondaryInverse);
                android.R.attr.textColorSecondary);
        mIconColorNormal = Utils.getHomepageIconColor(mContext);
        mIconColorHighlight = Utils.getHomepageIconColorHighlight(mContext);
    }
@@ -237,10 +237,6 @@ public class HighlightableTopLevelPreferenceAdapter extends PreferenceGroupAdapt
        v.setBackgroundResource(mHighlightBackgroundRes);
        ((TextView) v.findViewById(android.R.id.title)).setTextColor(mTitleColorHighlight);
        ((TextView) v.findViewById(android.R.id.summary)).setTextColor(mSummaryColorHighlight);
        final Drawable drawable = ((ImageView) v.findViewById(android.R.id.icon)).getDrawable();
        if (drawable != null) {
            drawable.setTint(mIconColorHighlight);
        }
    }

    private void removeHighlightBackground(PreferenceViewHolder holder) {