Skip to content

Commit 7ee1e1c

Browse files
committed
Added another catch block to handle NoActivityFoundException
1 parent 804225d commit 7ee1e1c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

WordPressLoginFlow/src/main/java/org/wordpress/android/login/LoginEmailFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.wordpress.android.login;
22

33
import android.app.PendingIntent;
4+
import android.content.ActivityNotFoundException;
45
import android.content.Context;
56
import android.content.Intent;
67
import android.content.IntentSender;
@@ -437,6 +438,8 @@ public void getEmailHints() {
437438
startIntentSenderForResult(intent.getIntentSender(), EMAIL_CREDENTIALS_REQUEST_CODE, null, 0, 0, 0, null);
438439
} catch (IntentSender.SendIntentException exception) {
439440
AppLog.d(T.NUX, LOG_TAG + "Could not start email hint picker" + exception);
441+
} catch (ActivityNotFoundException exception) {
442+
AppLog.d(T.NUX, LOG_TAG + "Could not find any activity to handle email hint picker" + exception);
440443
}
441444
}
442445

0 commit comments

Comments
 (0)