@Override protected void handle(final Context context, final int errorCode) { if (!sNotificationShown.getAndSet(true)) { sErrorHandlerActionHistogramSample .record(ERROR_HANDLER_ACTION_IGNORED_AS_REDUNDANT); return; } GoogleApiAvailability.getInstance().showErrorNotification(context, errorCode); sErrorHandlerActionHistogramSample.record(ERROR_HANDLER_ACTION_SYSTEM_NOTIFICATION); } }