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

Commit 42d2621f authored by Alex Hills's avatar Alex Hills Committed by Android Git Automerger
Browse files

am 0e3c7dbd: Modifies wear Permission title height to avoid clipping

* commit '0e3c7dbd':
  Modifies wear Permission title height to avoid clipping
parents 71b7629e 0e3c7dbd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@
    <TextView
        android:id="@+id/header"
        android:layout_width="match_parent"
        android:layout_height="@dimen/settings_header_base_height"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/settings_header_base_height"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="@dimen/settings_header_top_margin"
        android:textSize="@dimen/setting_short_header_text_size"
+1 −1
Original line number Diff line number Diff line
@@ -207,9 +207,9 @@ public abstract class TitledSettingsFragment extends Fragment implements
        if (!singleLine) {
            height += getResources().getDimension(R.dimen.setting_header_extra_line_height);
        }
        mHeader.setMinHeight((int) height);

        FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) mHeader.getLayoutParams();
        params.height = (int) height;
        final Context context = getContext();
        if (!singleLine) {
            // Make the top margin a little bit smaller so there is more space for the title.