Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13d8b4a7 authored by Fang Yunong's avatar Fang Yunong Committed by Gerrit - the friendly Code Review server
Browse files

Dialer: Add call/data usage Timer in Dialer setting

Add call/data usage timer in dialer setting if the carrier
turn on this function.

CRs-Fixed: 1039233
Change-Id: I6dd82ca9e968dd9132536503bc5ec336cdea4e84
parent f5ad4291
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,4 +32,5 @@
<resources>
  <bool name="config_regional_video_call_welcome_dialog">false</bool>
  <bool name="config_regional_pup_no_available_network">false</bool>
  <bool name="config_regional_call_data_usage_enable">false</bool>
</resources>
+11 −0
Original line number Diff line number Diff line
@@ -145,6 +145,17 @@ public class DialerSettingsActivity extends AppCompatPreferenceActivity {
            target.add(videocallingHeader);
        }

        boolean usageEnable = getResources().getBoolean(
                R.bool.config_regional_call_data_usage_enable);
        if (usageEnable) {
            final Header historyInfoHeader = new Header();
            historyInfoHeader.titleRes = R.string.call_data_info_label;
            historyInfoHeader.summaryRes = R.string.call_data_info_description;
            historyInfoHeader.intent = new Intent(Intent.ACTION_MAIN);
            historyInfoHeader.intent
                    .setAction("android.intent.action.SHOW_TIMERINFO");
            target.add(historyInfoHeader);
        }
    }

    @Override