Loading src/com/android/contacts/editor/ContactEditorFragment.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -1454,7 +1454,7 @@ public class ContactEditorFragment extends Fragment implements public static interface Listener { public static interface Listener { /** /** * Contact was not found, so somehow close this fragment. This is raised after a contact * Contact was not found, so somehow close this fragment. This is raised after a contact * is removed via Menu/Delete (unless it was a new contact) * is removed via Menu/Delete */ */ void onContactNotFound(); void onContactNotFound(); Loading Loading @@ -1968,8 +1968,9 @@ public class ContactEditorFragment extends Fragment implements final long loaderCurrentTime = SystemClock.elapsedRealtime(); final long loaderCurrentTime = SystemClock.elapsedRealtime(); Log.v(TAG, "Time needed for loading: " + (loaderCurrentTime-mLoaderStartTime)); Log.v(TAG, "Time needed for loading: " + (loaderCurrentTime-mLoaderStartTime)); if (!data.isLoaded()) { if (!data.isLoaded()) { // Item has been deleted // Item has been deleted. Close activity without saving again. Log.i(TAG, "No contact found. Closing activity"); Log.i(TAG, "No contact found. Closing activity"); mStatus = Status.CLOSING; if (mListener != null) mListener.onContactNotFound(); if (mListener != null) mListener.onContactNotFound(); return; return; } } Loading Loading
src/com/android/contacts/editor/ContactEditorFragment.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -1454,7 +1454,7 @@ public class ContactEditorFragment extends Fragment implements public static interface Listener { public static interface Listener { /** /** * Contact was not found, so somehow close this fragment. This is raised after a contact * Contact was not found, so somehow close this fragment. This is raised after a contact * is removed via Menu/Delete (unless it was a new contact) * is removed via Menu/Delete */ */ void onContactNotFound(); void onContactNotFound(); Loading Loading @@ -1968,8 +1968,9 @@ public class ContactEditorFragment extends Fragment implements final long loaderCurrentTime = SystemClock.elapsedRealtime(); final long loaderCurrentTime = SystemClock.elapsedRealtime(); Log.v(TAG, "Time needed for loading: " + (loaderCurrentTime-mLoaderStartTime)); Log.v(TAG, "Time needed for loading: " + (loaderCurrentTime-mLoaderStartTime)); if (!data.isLoaded()) { if (!data.isLoaded()) { // Item has been deleted // Item has been deleted. Close activity without saving again. Log.i(TAG, "No contact found. Closing activity"); Log.i(TAG, "No contact found. Closing activity"); mStatus = Status.CLOSING; if (mListener != null) mListener.onContactNotFound(); if (mListener != null) mListener.onContactNotFound(); return; return; } } Loading