Add back screenshot button to Launcher3
- Also make spacing between buttons always 36dp - Updated screenshot button image for Launcher3 Fix: 208384949 Test: Start overview in Launcher3WithQuickStep, test screenshot button is working Change-Id: Ieb60ce134813202c1d14137fff0a131e1f5f8c96
This commit is contained in:
1 parent
683b4cd824
commit
1bf0fe1b70
6 files changed
+39
-14
No files matched your search
@@ -24,8 +24,10 @@ import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -247,6 +249,13 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
|
||||
public void setDp(DeviceProfile dp) {
|
||||
mDp = dp;
|
||||
updateVerticalMargin(SysUINavigationMode.getMode(getContext()));
|
||||
|
||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
|
||||
dp.isVerticalBarLayout() ? 0 : dp.overviewActionsButtonSpacing,
|
||||
ViewGroup.LayoutParams.MATCH_PARENT);
|
||||
params.weight = dp.isVerticalBarLayout() ? 1 : 0;
|
||||
findViewById(R.id.action_split_space).setLayoutParams(params);
|
||||
|
||||
requestLayout();
|
||||
|
||||
mSplitButton.setCompoundDrawablesWithIntrinsicBounds(
|
||||
|
||||
Reference in new issue
Block a user