From 5953e8c0237cdbc40a0439734d6ef212b2afa27f Mon Sep 17 00:00:00 2001 From: Wenyi Wang Date: Thu, 24 Sep 2015 15:38:14 -0700 Subject: Show ImportExportDialogFragment based on tabs Bug: 19850584 Change-Id: Ic2faade79bebfc352c3f492c4cb7679090022e63 --- src/com/android/dialer/DialtactsActivity.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index fe828a3bb..c8ef9b081 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -691,8 +691,13 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O // involve querying a {@link ProviderStatusLoader}, which we don't want to do right // now in Dialtacts for (potential) performance reasons. Compare with how it is // done in {@link PeopleActivity}. - ImportExportDialogFragment.show(getFragmentManager(), true, - DialtactsActivity.class); + if (mListsFragment.getCurrentTabIndex() == ListsFragment.TAB_INDEX_SPEED_DIAL) { + ImportExportDialogFragment.show(getFragmentManager(), true, + DialtactsActivity.class, ImportExportDialogFragment.EXPORT_MODE_FAVORITES); + } else { + ImportExportDialogFragment.show(getFragmentManager(), true, + DialtactsActivity.class, ImportExportDialogFragment.EXPORT_MODE_DEFAULT); + } return true; case R.id.menu_clear_frequents: ClearFrequentsDialog.show(getFragmentManager()); -- cgit v1.2.3