Loading src/com/android/contacts/quickcontact/QuickContactActivity.java +16 −16 Original line number Diff line number Diff line Loading @@ -1903,6 +1903,7 @@ public class QuickContactActivity extends ContactsActivity { @Override public void onLoadFinished(Loader<Contact> loader, Contact data) { Trace.beginSection("onLoadFinished()"); try { if (isFinishing()) { return; Loading @@ -1913,20 +1914,19 @@ public class QuickContactActivity extends ContactsActivity { throw new IllegalStateException("Failed to load contact", data.getException()); } if (data.isNotFound()) { if (mHasAlreadyBeenOpened) { finish(); } else { Log.i(TAG, "No contact found: " + ((ContactLoader)loader).getLookupUri()); Toast.makeText(QuickContactActivity.this, R.string.invalidContactMessage, Toast.LENGTH_LONG).show(); } finish(); return; } bindContactData(data); } finally { Trace.endSection(); } } @Override public Loader<Contact> onCreateLoader(int id, Bundle args) { Loading Loading
src/com/android/contacts/quickcontact/QuickContactActivity.java +16 −16 Original line number Diff line number Diff line Loading @@ -1903,6 +1903,7 @@ public class QuickContactActivity extends ContactsActivity { @Override public void onLoadFinished(Loader<Contact> loader, Contact data) { Trace.beginSection("onLoadFinished()"); try { if (isFinishing()) { return; Loading @@ -1913,20 +1914,19 @@ public class QuickContactActivity extends ContactsActivity { throw new IllegalStateException("Failed to load contact", data.getException()); } if (data.isNotFound()) { if (mHasAlreadyBeenOpened) { finish(); } else { Log.i(TAG, "No contact found: " + ((ContactLoader)loader).getLookupUri()); Toast.makeText(QuickContactActivity.this, R.string.invalidContactMessage, Toast.LENGTH_LONG).show(); } finish(); return; } bindContactData(data); } finally { Trace.endSection(); } } @Override public Loader<Contact> onCreateLoader(int id, Bundle args) { Loading