diff options
author | Sai Cheemalapati <saicheems@google.com> | 2014-07-16 17:02:37 +0000 |
---|---|---|
committer | Sai Cheemalapati <saicheems@google.com> | 2014-07-16 17:02:37 +0000 |
commit | c44a26cd4de71485047ab3b6c68c9250c02bb27a (patch) | |
tree | bc805cf5061d1f2326f3eba25d41614dc3dde78a /src/com/android/dialer/calllog/CallLogFragment.java | |
parent | cee1e65f0c411e35c4521922c3e9def13e01fe64 (diff) |
Revert "Added a dialog to confirm caller id reporting."
This reverts commit cee1e65f0c411e35c4521922c3e9def13e01fe64.
Change-Id: Ic50fd443856ea7e22714423939ac782cd4e89276
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogFragment.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 852370566..1668895ef 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -20,7 +20,6 @@ import android.animation.Animator; import android.animation.ValueAnimator; import android.animation.Animator.AnimatorListener; import android.app.Activity; -import android.app.DialogFragment; import android.app.KeyguardManager; import android.app.ListFragment; import android.content.Context; @@ -66,7 +65,7 @@ import java.util.List; * (all, missed or voicemails), specify it in the constructor. */ public class CallLogFragment extends ListFragment - implements CallLogQueryHandler.Listener, CallLogAdapter.OnReportButtonClickListener, + implements CallLogQueryHandler.Listener, CallLogAdapter.CallFetcher, CallLogAdapter.CallItemExpandedListener { private static final String TAG = "CallLogFragment"; @@ -179,6 +178,7 @@ public class CallLogFragment extends ListFragment @Override public void onCreate(Bundle state) { super.onCreate(state); + if (state != null) { mCallTypeFilter = state.getInt(KEY_FILTER_TYPE, mCallTypeFilter); mLogLimit = state.getInt(KEY_LOG_LIMIT, mLogLimit); @@ -187,8 +187,8 @@ public class CallLogFragment extends ListFragment } String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity()); - mAdapter = ObjectFactory.newCallLogAdapter(getActivity(), this, - new ContactInfoHelper(getActivity(), currentCountryIso), this, this, true); + mAdapter = ObjectFactory.newCallLogAdapter(getActivity(), this, new ContactInfoHelper( + getActivity(), currentCountryIso), this, true); setListAdapter(mAdapter); mCallLogQueryHandler = new CallLogQueryHandler(getActivity().getContentResolver(), this, mLogLimit); @@ -666,17 +666,4 @@ public class CallLogFragment extends ListFragment return null; } - - public void onBadDataReported(String number) { - mAdapter.onBadDataReported(number); - mAdapter.notifyDataSetChanged(); - } - - public void onReportButtonClick(String number) { - DialogFragment df = ObjectFactory.getReportDialogFragment(number); - if (df != null) { - df.setTargetFragment(this, 0); - df.show(getActivity().getFragmentManager(), "report_dialog"); - } - } } |