From 9a090c89e7a0c43a668bd6e2ac5e5e680f323aed Mon Sep 17 00:00:00 2001 From: Eric Erfanian Date: Thu, 16 Mar 2017 19:22:24 -0700 Subject: Update AOSP Dialer source from internal google3 repository at cl/150392808 Test: Treehugger Notable this release: * Reintroduce localization. This CL updates the AOSP Dialer source with all the changes that have gone into the private google3 repository. This includes all the changes from 3/15/2017 to cl/150392808 (3/16/2017). This goal of these drops is to keep the AOSP source in sync with the internal google3 repository. Currently these sync are done by hand with very minor modifications to the internal source code. See the Android.mk file for list of modifications. Our current goal is to do frequent drops (daily if possible) and eventually switched to an automated process. Change-Id: Ia16d68469c2ca1ff42c7fa31d922bdb78c4e244a --- .../android/dialer/simulator/impl/SimulatorActionProvider.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'java/com/android/dialer/simulator') diff --git a/java/com/android/dialer/simulator/impl/SimulatorActionProvider.java b/java/com/android/dialer/simulator/impl/SimulatorActionProvider.java index 6cd573361..4acb548a6 100644 --- a/java/com/android/dialer/simulator/impl/SimulatorActionProvider.java +++ b/java/com/android/dialer/simulator/impl/SimulatorActionProvider.java @@ -17,7 +17,9 @@ package com.android.dialer.simulator.impl; import android.content.Context; +import android.content.Intent; import android.os.AsyncTask; +import android.provider.VoicemailContract; import android.support.annotation.NonNull; import android.view.ActionProvider; import android.view.MenuItem; @@ -72,6 +74,14 @@ final class SimulatorActionProvider extends ActionProvider { populateDatabase(); return true; }); + subMenu + .add("Sync Voicemail") + .setOnMenuItemClickListener( + (item) -> { + Intent intent = new Intent(VoicemailContract.ACTION_SYNC_VOICEMAIL); + context.sendBroadcast(intent); + return true; + }); } private void populateDatabase() { -- cgit v1.2.3