Update .gitignore to better deal with .idea files.

We want to ignore all the files except the ones already checked into
git. This changes to do that instead of building a blacklist as Intellij
might add more new files that we do not have listed yet.

Test: None
Change-Id: Ia145be246947b6e22f6db0968e7748e5bd08a33f
diff --git a/.gitignore b/.gitignore
index 996194c..e57740b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,14 +1,10 @@
 .classpath
 .gradle
-.idea/dictionaries/
-.idea/libraries/
-.idea/modules/
-.idea/compiler.xml
-.idea/gradle.xml
-.idea/misc.xml
-.idea/modules.xml
-.idea/runConfigurations.xml
-.idea/workspace.xml
+.idea/
+!.idea/codeStyleSettings.xml
+!.idea/copyright/AndroidCopyright.xml
+!.idea/copyright/profiles_settings.xml
+!.idea/vcs.xml
 .project
 .settings/
 project.properties