OSDN Git Service

Add config to show an alert dialog for video charges
authorMasaho Nishikawa <masaho.nishikawa@sony.com>
Mon, 18 Dec 2017 05:33:38 +0000 (14:33 +0900)
committerJordan Liu <jminjie@google.com>
Thu, 1 Mar 2018 20:14:57 +0000 (12:14 -0800)
Add config to show an alert dialog for video charges when user starts
a video call. The default value is false.

Test: manual - Verified that a warning dialog about charges when a
video call is started if KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL
is true.

Bug: 67832837
Test: manual
Change-Id: I11ab3ea9a8971a9d76b47714638f1fe0a9c980c2

telephony/java/android/telephony/CarrierConfigManager.java

index e8b2fa7..3e09c6f 100644 (file)
@@ -1569,6 +1569,14 @@ public class CarrierConfigManager {
             "notify_international_call_on_wfc_bool";
 
     /**
+     * Flag specifying whether to show an alert dialog for video call charges.
+     * By default this value is {@code false}.
+     * @hide
+     */
+    public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL =
+            "show_video_call_charges_alert_dialog_bool";
+
+    /**
      * An array containing custom call forwarding number prefixes that will be blocked while the
      * device is reporting that it is roaming. By default, there are no custom call
      * forwarding prefixes and none of these numbers will be filtered. If one or more entries are
@@ -2102,6 +2110,7 @@ public class CarrierConfigManager {
         sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL,
                 false);
         sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false);
+        sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false);
         sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY,
                 null);
         sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0);