From bc8be0abe73f3626df5f36ff7232ac0b653a9878 Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Tue, 15 Mar 2016 17:14:09 -0700 Subject: Adding logging for migrate blocked numbers Bug: 26664600 Change-Id: I64e9d1fbd825f25e23124d95b2475fdd6e0830f9 --- src/com/android/dialer/compat/FilteredNumberCompat.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/android/dialer/compat') diff --git a/src/com/android/dialer/compat/FilteredNumberCompat.java b/src/com/android/dialer/compat/FilteredNumberCompat.java index 08bf6c82a..c6c714b27 100644 --- a/src/com/android/dialer/compat/FilteredNumberCompat.java +++ b/src/com/android/dialer/compat/FilteredNumberCompat.java @@ -44,6 +44,7 @@ import com.android.dialer.filterednumber.BlockedNumbersMigrator; import com.android.dialer.filterednumber.BlockedNumbersSettingsActivity; import com.android.dialer.filterednumber.MigrateBlockedNumbersDialogFragment; import com.android.dialerbind.ObjectFactory; +import com.android.incallui.Log; import java.util.ArrayList; import java.util.List; @@ -57,6 +58,8 @@ import java.util.List; */ public class FilteredNumberCompat { + private static final String TAG = "FilteredNumberCompat"; + protected static final String HAS_MIGRATED_TO_NEW_BLOCKING_KEY = "migratedToNewBlocking"; private static Boolean isEnabledForTest; @@ -247,14 +250,18 @@ public class FilteredNumberCompat { final Integer blockId, final String number, final String countryIso, final String displayNumber, final Integer parentViewId, final FragmentManager fragmentManager, @Nullable final Callback callback) { + Log.i(TAG, "showBlockNumberDialogFlow - start"); // If the user is blocking a number and isn't using the framework solution when they // should be, show the migration dialog if (shouldShowMigrationDialog(blockId == null)) { + Log.i(TAG, "showBlockNumberDialogFlow - showing migration dialog"); MigrateBlockedNumbersDialogFragment .newInstance(new BlockedNumbersMigrator(contentResolver), new BlockedNumbersMigrator.Listener() { @Override public void onComplete() { + Log.i(TAG, "showBlockNumberDialogFlow - listener showing block " + + "number dialog"); BlockNumberDialogFragment .show(null, number, countryIso, displayNumber, parentViewId, @@ -263,6 +270,7 @@ public class FilteredNumberCompat { }).show(fragmentManager, "MigrateBlockedNumbers"); return; } + Log.i(TAG, "showBlockNumberDialogFlow - showing block number dialog"); BlockNumberDialogFragment .show(blockId, number, countryIso, displayNumber, parentViewId, fragmentManager, callback); -- cgit v1.2.3