summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenyi Wang <wenyiw@google.com>2015-09-25 22:02:37 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-25 22:02:37 +0000
commit7ac79e3c67405ea7d667ee6ca86609374f810f4c (patch)
treee8b5f43d28950a690169a04b5d517a9d9cce9b66
parent034bbc1e7c9275fdf3ac8ad29063969b6c1502ab (diff)
parent7cd780e78aa052aad584bfc323becc4ed2f0719e (diff)
am 7cd780e7: Merge "Show ImportExportDialogFragment based on tabs" into ub-contactsdialer-a-dev
* commit '7cd780e78aa052aad584bfc323becc4ed2f0719e': Show ImportExportDialogFragment based on tabs
-rw-r--r--src/com/android/dialer/DialtactsActivity.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 4febd9684..6f8f34167 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -669,8 +669,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());