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

Commit 857c1ca1 authored by Stanley Wang's avatar Stanley Wang
Browse files

"Dsiabled" text aligns to textview right

Change-Id: Id0c2b9de8355e977d1954998266079ba065c8c0b
Fixes: 112123106
Test: manual
parent c21f4a51
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -73,8 +73,8 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder {
    static View newView(ViewGroup parent, boolean twoTarget) {
        ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext())
                .inflate(R.layout.preference_app, parent, false);
        if (twoTarget) {
        final ViewGroup widgetFrame = view.findViewById(android.R.id.widget_frame);
        if (twoTarget) {
            if (widgetFrame != null) {
               LayoutInflater.from(parent.getContext())
                       .inflate(R.layout.preference_widget_master_switch, widgetFrame, true);
@@ -84,6 +84,8 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder {
               // second to last, before widget frame
               view.addView(divider, view.getChildCount() - 1);
            }
        } else if (widgetFrame != null) {
            widgetFrame.setVisibility(View.GONE);
        }
        return view;
    }