diff options
author | Tor Norbye <tnorbye@google.com> | 2012-10-25 09:38:24 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-10-25 09:38:24 -0700 |
commit | 2d0e52de47d499016a0926dd4cca538fd6301128 (patch) | |
tree | 47613a2d4206b5a8ec8fcf1a9f35aa7c0a27ed6a /templates/activities/BlankActivity/root/src/app_package | |
parent | 910a55cea9a2b7317d775d735bcfcf2f30fcf63e (diff) | |
download | sdk-2d0e52de47d499016a0926dd4cca538fd6301128.zip sdk-2d0e52de47d499016a0926dd4cca538fd6301128.tar.gz sdk-2d0e52de47d499016a0926dd4cca538fd6301128.tar.bz2 |
38920: Fix dropdown navigation template
Change-Id: I24760a17de7ec5278a922c109e8ab1fbe7123bfd
Diffstat (limited to 'templates/activities/BlankActivity/root/src/app_package')
-rw-r--r-- | templates/activities/BlankActivity/root/src/app_package/DropdownActivity.java.ftl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/activities/BlankActivity/root/src/app_package/DropdownActivity.java.ftl b/templates/activities/BlankActivity/root/src/app_package/DropdownActivity.java.ftl index f2549ad..cb0665e 100644 --- a/templates/activities/BlankActivity/root/src/app_package/DropdownActivity.java.ftl +++ b/templates/activities/BlankActivity/root/src/app_package/DropdownActivity.java.ftl @@ -1,9 +1,9 @@ package ${packageName}; -<#if minApi < 14>import android.annotation.TargetApi;</#if> +<#if minApiLevel < 14>import android.annotation.TargetApi;</#if> import android.app.ActionBar; import android.os.Bundle; -<#if minApi < 14>import android.content.Context; +<#if minApiLevel < 14>import android.content.Context; import android.os.Build;</#if> import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; @@ -43,7 +43,7 @@ public class ${activityClass} extends FragmentActivity implements ActionBar.OnNa actionBar.setListNavigationCallbacks( // Specify a SpinnerAdapter to populate the dropdown list. new ArrayAdapter<String>( - <#if minApi gte 14>actionBar.getThemedContext()<#else>getActionBarThemedContextCompat()</#if>, + <#if minApiLevel gte 14>actionBar.getThemedContext()<#else>getActionBarThemedContextCompat()</#if>, android.R.layout.simple_list_item_1, android.R.id.text1, new String[] { @@ -54,7 +54,7 @@ public class ${activityClass} extends FragmentActivity implements ActionBar.OnNa this); } - <#if minApi < 14> + <#if minApiLevel < 14> /** * Backward-compatible version of {@link ActionBar#getThemedContext()} that * simply returns the {@link android.app.Activity} if |