Making Dialer activity optional.
Works beautifully with a device overlay.
Change-Id: Ie036036930dc0a9c1f88c7d3ff2fff82b194f198
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 905e06d..b67b010 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -72,6 +72,7 @@
android:clearTaskOnLaunch="true"
android:icon="@drawable/ic_launcher_phone"
android:screenOrientation="nosensor"
+ android:enabled="@bool/dialerEnabled"
>
<intent-filter>
<action android:name="android.intent.action.DIAL" />
diff --git a/res/values/donottranslate_config.xml b/res/values/donottranslate_config.xml
index cad2a63..e41e153 100644
--- a/res/values/donottranslate_config.xml
+++ b/res/values/donottranslate_config.xml
@@ -18,6 +18,9 @@
-->
<resources>
+ <!-- Indicates whether the dialer activity is enabled in the build -->
+ <bool name="dialerEnabled">true</bool>
+
<!-- Flag indicating whether Contacts app is allowed to import contacts from SDCard -->
<bool name="config_allow_import_from_sdcard">true</bool>
<!-- If true, all vcard files are imported from SDCard without asking a user.