aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-12-10 10:29:41 -0800
committerTor Norbye <tnorbye@google.com>2012-12-10 10:47:11 -0800
commitf8d65e59e16e22a71eb915e3b200c7482f647776 (patch)
tree0ff2832bf5bcfc1bce71b5222a88e5229a0bc8dc /templates
parent71074e376d3d3c9bc52832815f0e2f8b2bd33fea (diff)
downloadsdk-f8d65e59e16e22a71eb915e3b200c7482f647776.zip
sdk-f8d65e59e16e22a71eb915e3b200c7482f647776.tar.gz
sdk-f8d65e59e16e22a71eb915e3b200c7482f647776.tar.bz2
41154: Handle allowBackup properly for target < 4
This fixes 41154: Template Android Application Project for API v3 reports AAPT problem with android:allowBackup="true" Change-Id: I74b4cd0f8df9a74fe9221250cc83b1d15821ce51
Diffstat (limited to 'templates')
-rw-r--r--templates/projects/NewAndroidApplication/root/AndroidManifest.xml.ftl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/projects/NewAndroidApplication/root/AndroidManifest.xml.ftl b/templates/projects/NewAndroidApplication/root/AndroidManifest.xml.ftl
index 80895b3..390a9da 100644
--- a/templates/projects/NewAndroidApplication/root/AndroidManifest.xml.ftl
+++ b/templates/projects/NewAndroidApplication/root/AndroidManifest.xml.ftl
@@ -3,9 +3,9 @@
android:versionCode="1"
android:versionName="1.0">
- <uses-sdk android:minSdkVersion="${minApi}" android:targetSdkVersion="${targetApi}" />
+ <uses-sdk android:minSdkVersion="${minApi}" <#if buildApi gte 4>android:targetSdkVersion="${targetApi}" </#if>/>
- <application android:allowBackup="true"
+ <application <#if minApiLevel gte 4 && buildApi gte 4>android:allowBackup="true"</#if>
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"<#if baseTheme != "none">
android:theme="@style/AppTheme"</#if>>