Merge "Fixing stroked qs tile" into rvc-d1-dev-plus-aosp

This commit is contained in:
Jay Aliomer
2020-05-07 17:31:53 +00:00
committed by Android (Google) Code Review
4 changed files with 9 additions and 4 deletions

View File

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

View File

@@ -361,6 +361,8 @@
<java-symbol type="bool" name="config_disableUsbPermissionDialogs"/> <java-symbol type="bool" name="config_disableUsbPermissionDialogs"/>
<java-symbol type="dimen" name="config_highResTaskSnapshotScale" /> <java-symbol type="dimen" name="config_highResTaskSnapshotScale" />
<java-symbol type="dimen" name="config_lowResTaskSnapshotScale" /> <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_use16BitTaskSnapshotPixelFormat" />
<java-symbol type="bool" name="config_hasRecents" /> <java-symbol type="bool" name="config_hasRecents" />
<java-symbol type="string" name="config_recentsComponentName" /> <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); int padding = context.getResources().getDimensionPixelSize(R.dimen.qs_quick_tile_padding);
mIconFrame = new FrameLayout(context); mIconFrame = new FrameLayout(context);
mStrokeWidthActive = context.getResources() mStrokeWidthActive = context.getResources()
.getDimension(R.dimen.config_qsTileStrokeWidthActive); .getDimension(com.android.internal.R.dimen.config_qsTileStrokeWidthActive);
mStrokeWidthInactive = context.getResources() 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); int size = context.getResources().getDimensionPixelSize(R.dimen.qs_quick_tile_size);
addView(mIconFrame, new LayoutParams(size, size)); addView(mIconFrame, new LayoutParams(size, size));
mBg = new ImageView(getContext()); mBg = new ImageView(getContext());

View File

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