diff options
author | Wenyi Wang <wenyiw@google.com> | 2015-09-24 15:38:14 -0700 |
---|---|---|
committer | Wenyi Wang <wenyiw@google.com> | 2015-09-25 14:15:54 -0700 |
commit | 5953e8c0237cdbc40a0439734d6ef212b2afa27f (patch) | |
tree | 0d366fe7f43f39f00cfef69c0fd2eae5b8d01775 /src/com/android/dialer/DialtactsActivity.java | |
parent | c2fbff362cff30cf547248240e4e4cf2ae8a3c7d (diff) |
Show ImportExportDialogFragment based on tabs
Bug: 19850584
Change-Id: Ic2faade79bebfc352c3f492c4cb7679090022e63
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 9 |
1 files changed, 7 insertions, 2 deletions
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()); |