OSDN Git Service

[Magnifier-28] Set corner radius
authorMihai Popa <popam@google.com>
Thu, 1 Mar 2018 16:08:14 +0000 (16:08 +0000)
committerMihai Popa <popam@google.com>
Fri, 9 Mar 2018 14:30:32 +0000 (14:30 +0000)
commit3dcbc2112d9a47779f2d6b1a54df729ae43aed7e
tree7c84cc3d3bcbd8b8af170a391550328120495a1f
parentddf57f1efa9b29f7d2211f5c2aafda432e05fab2
[Magnifier-28] Set corner radius

This CL updates both the magnifier and the floating toolbar to use the
dialogCornerRadius attribute for the corner radius of their windows. In
both we use its value defined in the default device theme, rather than
the value defined in the application's custom theme.

Bug: 70848492
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ifcf4cff1f38fd18b7dbb4c1802390e3beb92cd3c
core/java/android/widget/Magnifier.java
core/java/com/android/internal/widget/FloatingToolbar.java
core/res/res/drawable/floating_popup_background_dark.xml
core/res/res/drawable/floating_popup_background_light.xml