aboutsummaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2012-11-10 23:11:21 +0100
committerJorge Ruesga <jorge@ruesga.com>2012-11-11 20:30:06 +0100
commit554c4a75b3923f005115fca9f84174c841bea106 (patch)
tree47caf2803c8eb06a97340c1018b7d1419d22880a /AndroidManifest.xml
parent17d3b81a120f00ecf6a76bd3b13720a912377b37 (diff)
downloadandroid_packages_apps_CMFileManager-554c4a75b3923f005115fca9f84174c841bea106.tar.gz
android_packages_apps_CMFileManager-554c4a75b3923f005115fca9f84174c841bea106.tar.bz2
android_packages_apps_CMFileManager-554c4a75b3923f005115fca9f84174c841bea106.zip
CMFileManager: Themes support + Dark theme
This change enabled the theme support, and added a new dark theme under the package CMFileManagerThemes. To compile under build system, it must be enabled in vendor/cm/config/common.mk or vendor/cm/config/themes_common.mk (this was requested in change http://review.cyanogenmod.org/#/c/26311/) Themes were enabled in a new settings option. Under this setting the application show the user the available themes installed in the system. -------------------- For build new themes, developers should: - Create a new package that contains an activity with: * Permission: com.cyanogenmod.filemanager.permissions.READ_THEME * Action: com.cyanogenmod.filemanager.actions.MAIN_THEME * Category: com.cyanogenmod.filemanager.categories.THEME - Define the themes_ids, themes_names and themes_descriptions arrays-strings definitions for the themes that the package support. - Create a xxx_theme.xml for every theme that the package support, where the xxx is the id of the theme. Put your resources in this file, prefixing the resource with the id of the theme (xxx_). For a list of all supported resources see theme.xml in res/values of CMFileManager project. ------------------- Other fixes: * Protect console buffers from NPE * Fix code style of xmls (layouts, drawables, ...) Patchset 2: Fixed code style and added Christian suggestion Patchset 3: Added forgotten READ_THEME permission check as described in the note above. Patchset 4: Use centerInside in theme preview for better image fit Change-Id: I4142da6d9ed1b06318e47ff9c05f9a874c62f3ae
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml35
1 files changed, 18 insertions, 17 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 20cbb9e1..bc947fdb 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
-<!--
- ** Copyright (C) 2012 The CyanogenMod Project
- **
- ** Licensed under the Apache License, Version 2.0 (the "License");
- ** you may not use this file except in compliance with the License.
- ** You may obtain a copy of the License at
- **
- ** http://www.apache.org/licenses/LICENSE-2.0
- **
- ** Unless required by applicable law or agreed to in writing, software
- ** distributed under the License is distributed on an "AS IS" BASIS,
- ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ** See the License for the specific language governing permissions and
- ** limitations under the License.
--->
+<!-- Copyright (C) 2012 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyanogenmod.filemanager"
- android:versionCode="100"
- android:versionName="1.0.0">
+ android:versionCode="101"
+ android:versionName="1.0.1">
<original-package android:name="com.cyanogenmod.filemanager" />
@@ -28,6 +28,7 @@
<uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.NFC"/>
+ <uses-permission android:name="com.cyanogenmod.filemanager.permissions.READ_THEME"/>
<application
android:name="FileManagerApplication"