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

Commit b6efe90b authored by Brian Attwell's avatar Brian Attwell
Browse files

Allow ToolbarWidgetWrapper insetStart = 0

Change-Id: I8564cfe07b082e6edb3dc1569b3020f88d286d61
parent d361a4f9
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -133,11 +133,12 @@ public class ToolbarWidgetWrapper implements DecorToolbar {
        }

        final int contentInsetStart = a.getDimensionPixelOffset(
                R.styleable.ActionBar_contentInsetStart, 0);
                R.styleable.ActionBar_contentInsetStart, -1);
        final int contentInsetEnd = a.getDimensionPixelOffset(
                R.styleable.ActionBar_contentInsetEnd, 0);
        if (contentInsetStart > 0 || contentInsetEnd > 0) {
            mToolbar.setContentInsetsRelative(contentInsetStart, contentInsetEnd);
                R.styleable.ActionBar_contentInsetEnd, -1);
        if (contentInsetStart >= 0 || contentInsetEnd >= 0) {
            mToolbar.setContentInsetsRelative(Math.max(contentInsetStart, 0),
                    Math.max(contentInsetEnd, 0));
        }

        final int titleTextStyle = a.getResourceId(R.styleable.ActionBar_titleTextStyle, 0);