summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/simulator
diff options
context:
space:
mode:
authorEric Erfanian <erfanian@google.com>2017-03-16 19:22:24 -0700
committerEric Erfanian <erfanian@google.com>2017-03-17 19:21:59 +0000
commit9a090c89e7a0c43a668bd6e2ac5e5e680f323aed (patch)
tree2f55365aaf87df9ba7c1fe0be56a7d0988eadf30 /java/com/android/dialer/simulator
parent2df4538eb90b896be15eebc1d9adf1206131c8a3 (diff)
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
Diffstat (limited to 'java/com/android/dialer/simulator')
-rw-r--r--java/com/android/dialer/simulator/impl/SimulatorActionProvider.java10
1 files changed, 10 insertions, 0 deletions
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() {