OSDN Git Service

Revert "Disabling som attributes so that dependencies can use compat libraries"
authorSunny Goyal <sunnygoyal@google.com>
Wed, 24 Feb 2016 00:27:08 +0000 (00:27 +0000)
committerSunny Goyal <sunnygoyal@google.com>
Wed, 24 Feb 2016 00:28:02 +0000 (00:28 +0000)
This reverts commit e1bd986d77afc9426e320b7cce53993086f9d8ba.

Change-Id: I27490d0cb241b2e58ce45998f7f9e9bc8d84993c

res/values/attrs.xml
res/values/styles.xml
src/com/android/launcher3/PreloadIconDrawable.java

index 6392123..82f33d1 100644 (file)
         <attr name="y" format="string" />
         <attr name="spanX" format="string" />
         <attr name="spanY" format="string" />
-        <!--
-          Temporarily disabling attr format definitions to prevent conflicts with support libs.
-           Re-enable it once AAPT starts supporting multiple definitions of same attr.
         <attr name="icon" format="reference" />  
         <attr name="title" format="reference" />
-        -->
         <attr name="uri" format="string" />
     </declare-styleable>
 
     </declare-styleable>
 
     <declare-styleable name="PreloadIconDrawable">
-        <attr name="ringBackground" format="reference" />
+        <attr name="background" format="reference" />
         <attr name="ringOutset" format="dimension" />
         <attr name="indicatorSize" format="dimension" />
     </declare-styleable>
index 2b13159..4eee130 100644 (file)
     <style name="DropTargetButton" parent="DropTargetButtonBase" />
 
     <style name="PreloadIcon">
-        <item name="ringBackground">@drawable/virtual_preload</item>
+        <item name="background">@drawable/virtual_preload</item>
         <item name="indicatorSize">4dp</item>
         <item name="ringOutset">4dp</item>
     </style>
 
     <style name="PreloadIcon.Folder">
-        <item name="ringBackground">@drawable/virtual_preload_folder</item>
+        <item name="background">@drawable/virtual_preload_folder</item>
         <item name="indicatorSize">4dp</item>
         <item name="ringOutset">4dp</item>
     </style>
index a31ae0b..908c8b9 100644 (file)
@@ -60,7 +60,7 @@ class PreloadIconDrawable extends Drawable {
 
     public void applyPreloaderTheme(Theme t) {
         TypedArray ta = t.obtainStyledAttributes(R.styleable.PreloadIconDrawable);
-        mBgDrawable = ta.getDrawable(R.styleable.PreloadIconDrawable_ringBackground);
+        mBgDrawable = ta.getDrawable(R.styleable.PreloadIconDrawable_background);
         mBgDrawable.setFilterBitmap(true);
         mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0));
         mRingOutset = ta.getDimensionPixelSize(R.styleable.PreloadIconDrawable_ringOutset, 0);