diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-12 19:09:00 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-13 11:55:22 -0700 |
commit | 247df6ee4f43af916f7e7f339ed181a18807ef36 (patch) | |
tree | 5398368b42b5b18d525a8112eb7556dde0da42e7 /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 8ba6e006159a887671862c314e94487c0fd5e8e0 (diff) |
Reorganize Intent utilities, add send SMS intent.
+ Rename CallIntentUtils.java to IntentUtil.java.
+ Consolidate various intent creation methods to new file, and update
referenes throughout the application.
Bug: 20433758
Change-Id: Iee9e37985217c38c816124d0e74dff40a2871680
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 6a66eb388..229af389a 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -78,7 +78,7 @@ import com.android.dialer.NeededForReflection; import com.android.dialer.R; import com.android.dialer.SpecialCharSequenceMgr; import com.android.dialer.calllog.PhoneAccountUtils; -import com.android.dialer.util.CallIntentUtil; +import com.android.dialer.util.IntentUtil; import com.android.dialer.util.DialerUtils; import com.android.phone.common.CallLogAsync; import com.android.phone.common.HapticFeedback; @@ -1001,8 +1001,7 @@ public class DialpadFragment extends Fragment } public void callVoicemail() { - DialerUtils.startActivityWithErrorToast(getActivity(), CallIntentUtil - .getVoicemailIntent()); + DialerUtils.startActivityWithErrorToast(getActivity(), IntentUtil.getVoicemailIntent()); hideAndClearDialpad(false); } @@ -1098,7 +1097,7 @@ public class DialpadFragment extends Fragment // Clear the digits just in case. clearDialpad(); } else { - final Intent intent = CallIntentUtil.getCallIntent(number, + final Intent intent = IntentUtil.getCallIntent(number, (getActivity() instanceof DialtactsActivity ? ((DialtactsActivity) getActivity()).getCallOrigin() : null)); DialerUtils.startActivityWithErrorToast(getActivity(), intent); @@ -1616,7 +1615,7 @@ public class DialpadFragment extends Fragment } private Intent newFlashIntent() { - final Intent intent = CallIntentUtil.getCallIntent(EMPTY_NUMBER); + final Intent intent = IntentUtil.getCallIntent(EMPTY_NUMBER); intent.putExtra(EXTRA_SEND_EMPTY_FLASH, true); return intent; } |