Fix weird issue from new Gradle build tools

This commit is contained in:
paphonb
2017-07-10 10:51:26 +07:00
parent 946f4f3551
commit decdca0763
9 changed files with 10 additions and 10 deletions

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
<!-- Messaging, [All Apps], Dialer -->

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat -->
<include launcher:workspace="@xml/dw_phone_hotseat" />

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat -->
<include launcher:workspace="@xml/dw_phone_hotseat" />

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat -->
<include launcher:workspace="@xml/dw_tablet_hotseat" />

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat -->
<include launcher:workspace="@xml/dw_tablet_hotseat" />

View File

@@ -15,7 +15,7 @@
limitations under the License.
-->
<profiles xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" >
<profiles xmlns:launcher="http://schemas.android.com/apk/res-auto">
<profile
launcher:name="Pixel (Display Size set to Largest)"

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
<!-- Dialer, Messaging, [All Apps], Browser, Camera -->
<resolve

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto">
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
<!-- Messaging, Email, Browser, [All Apps], Music, Gallery, Camera -->
<resolve

View File

@@ -646,7 +646,7 @@ public class AutoInstallsLayout {
*/
protected static String getAttributeValue(XmlResourceParser parser, String attribute) {
String value = parser.getAttributeValue(
"http://schemas.android.com/apk/res-auto/com.android.launcher3", attribute);
"http://schemas.android.com/apk/res-auto", attribute);
if (value == null) {
value = parser.getAttributeValue(null, attribute);
}
@@ -660,7 +660,7 @@ public class AutoInstallsLayout {
protected static int getAttributeResourceValue(XmlResourceParser parser, String attribute,
int defaultValue) {
int value = parser.getAttributeResourceValue(
"http://schemas.android.com/apk/res-auto/com.android.launcher3", attribute,
"http://schemas.android.com/apk/res-auto", attribute,
defaultValue);
if (value == defaultValue) {
value = parser.getAttributeResourceValue(null, attribute, defaultValue);