From 8369df095a73a77b3715f8ae7ba06089cebca4ce Mon Sep 17 00:00:00 2001 From: Eric Erfanian Date: Wed, 3 May 2017 10:27:13 -0700 Subject: This change reflects the Dialer V10 RC00 branch. RC00 is based on: branch: dialer-android_release_branch/153304843.1 synced to: 153304843 following the instructions at go/dialer-aosp-release. In this release: * Removes final apache sources. * Uses native lite compilation. More drops will follow with subsequent release candidates until we reach our final v10 release, in cadence with our prebuilt drops. Test: TreeHugger, on device Change-Id: Ic9684057230f9b579c777820c746cd21bf45ec0f --- .../dialer/shortcuts/CallContactActivity.java | 10 +++++---- .../shortcuts/res/values-b+sr+Latn/strings.xml | 25 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 java/com/android/dialer/shortcuts/res/values-b+sr+Latn/strings.xml (limited to 'java/com/android/dialer/shortcuts') diff --git a/java/com/android/dialer/shortcuts/CallContactActivity.java b/java/com/android/dialer/shortcuts/CallContactActivity.java index d2c9a760d..b80797984 100644 --- a/java/com/android/dialer/shortcuts/CallContactActivity.java +++ b/java/com/android/dialer/shortcuts/CallContactActivity.java @@ -21,8 +21,8 @@ import android.net.Uri; import android.os.Bundle; import android.support.v4.app.ActivityCompat; import android.widget.Toast; -import com.android.dialer.callintent.nano.CallInitiationType; -import com.android.dialer.callintent.nano.CallSpecificAppData; +import com.android.dialer.callintent.CallInitiationType; +import com.android.dialer.callintent.CallSpecificAppData; import com.android.dialer.common.LogUtil; import com.android.dialer.interactions.PhoneNumberInteraction; import com.android.dialer.interactions.PhoneNumberInteraction.InteractionErrorCode; @@ -68,8 +68,10 @@ public class CallContactActivity extends TransactionSafeActivity * user can choose to grant or deny them. */ private void makeCall() { - CallSpecificAppData callSpecificAppData = new CallSpecificAppData(); - callSpecificAppData.callInitiationType = CallInitiationType.Type.LAUNCHER_SHORTCUT; + CallSpecificAppData callSpecificAppData = + CallSpecificAppData.newBuilder() + .setCallInitiationType(CallInitiationType.Type.LAUNCHER_SHORTCUT) + .build(); PhoneNumberInteraction.startInteractionForPhoneCall( this, contactUri, false /* isVideoCall */, callSpecificAppData); } diff --git a/java/com/android/dialer/shortcuts/res/values-b+sr+Latn/strings.xml b/java/com/android/dialer/shortcuts/res/values-b+sr+Latn/strings.xml new file mode 100644 index 000000000..86ce91524 --- /dev/null +++ b/java/com/android/dialer/shortcuts/res/values-b+sr+Latn/strings.xml @@ -0,0 +1,25 @@ + + + + + "Novo" + "Novi kontakt" + "Prečica ne funkcioniše. Prevucite da biste je uklonili." + "Kontakt više nije dostupan." + "Ne možete da pozovete jer nemate dozvole." + -- cgit v1.2.3