Fixing stroked qs tile

Bug: 145530620
Test: manual
Change-Id: I612e4bc4639f4551c5dda6dd4509fb3a96464689
(cherry picked from commit 02ce8242f4)
This commit is contained in:
Jay Aliomer
2020-05-05 23:14:08 -04:00
parent 181ea0b394
commit 37a5f9dd06
4 changed files with 9 additions and 4 deletions

View File

@@ -559,6 +559,10 @@
<dimen name="resolver_max_width">480dp</dimen>
<!-- Tile Stroke width -->
<dimen name="config_qsTileStrokeWidthActive">-1dp</dimen>
<dimen name="config_qsTileStrokeWidthInactive">-1dp</dimen>
<!-- Amount to reduce the size of the circular mask by (to compensate for
aliasing effects). This is only used on circular displays. -->
<dimen name="circular_display_mask_thickness">1px</dimen>

View File

@@ -361,6 +361,8 @@
<java-symbol type="bool" name="config_disableUsbPermissionDialogs"/>
<java-symbol type="dimen" name="config_highResTaskSnapshotScale" />
<java-symbol type="dimen" name="config_lowResTaskSnapshotScale" />
<java-symbol type="dimen" name="config_qsTileStrokeWidthInactive" />
<java-symbol type="dimen" name="config_qsTileStrokeWidthActive" />
<java-symbol type="bool" name="config_use16BitTaskSnapshotPixelFormat" />
<java-symbol type="bool" name="config_hasRecents" />
<java-symbol type="string" name="config_recentsComponentName" />

View File

@@ -88,9 +88,9 @@ public class QSTileBaseView extends com.android.systemui.plugins.qs.QSTileView {
int padding = context.getResources().getDimensionPixelSize(R.dimen.qs_quick_tile_padding);
mIconFrame = new FrameLayout(context);
mStrokeWidthActive = context.getResources()
.getDimension(R.dimen.config_qsTileStrokeWidthActive);
.getDimension(com.android.internal.R.dimen.config_qsTileStrokeWidthActive);
mStrokeWidthInactive = context.getResources()
.getDimension(R.dimen.config_qsTileStrokeWidthInactive);
.getDimension(com.android.internal.R.dimen.config_qsTileStrokeWidthInactive);
int size = context.getResources().getDimensionPixelSize(R.dimen.qs_quick_tile_size);
addView(mIconFrame, new LayoutParams(size, size));
mBg = new ImageView(getContext());

View File

@@ -24,6 +24,5 @@
<!-- Corner radius for bottom sheet system dialogs -->
<dimen name="config_bottomDialogCornerRadius">0dp</dimen>
<!-- Tile stroke width -->
<dimen name="config_qsTileStrokeWidthInactive">10dp</dimen>
<dimen name="config_qsTileStrokeWidthInactive">1dp</dimen>
</resources>