From e9db0a86e766f52a9cef38f7ad05a32185f0f953 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Fri, 22 Jun 2012 14:19:51 -0700 Subject: Project template tweaks Fix code which derives a project name from an application name such that it skips invalid project name characters. For example, the application name can be "I/O", but the project name should default to just "IO". Second, fix the validator code such that when it is validating a template parameter constraint of "class", it validates it as a class name, not a package name (so you cannot enter dots for example). Third, replace the default project template icons with the standard app icons (for when you disable Create Custom Launcher Icons). Fourth, tweak the templates such that you don't have unused imports when you create an activity without navigation, and remove unused padding dimension resources. Change-Id: I524608bb6347b4275338ec935e8de56bf3184c23 --- templates/other/ContentProvider/template.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/other/ContentProvider') diff --git a/templates/other/ContentProvider/template.xml b/templates/other/ContentProvider/template.xml index c6730d8..32a113a 100644 --- a/templates/other/ContentProvider/template.xml +++ b/templates/other/ContentProvider/template.xml @@ -9,7 +9,7 @@ id="className" name="Class Name" type="string" - constraints="class|unique" + constraints="class|unique|nonempty" default="MyContentProvider" />