Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2517eee authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "The reset() should not throw exceptions"

parents 4c3a915c 9d3ba825
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -121,7 +121,12 @@ final class FieldClassificationStrategy {
        synchronized (mLock) {
            if (mServiceConnection != null) {
                if (sDebug) Slog.d(TAG, "reset(): unbinding service.");
                try {
                    mContext.unbindService(mServiceConnection);
                } catch (IllegalArgumentException e) {
                    // no-op, just log the error message.
                    Slog.w(TAG, "reset(): " + e.getMessage());
                }
                mServiceConnection = null;
            } else {
                if (sDebug) Slog.d(TAG, "reset(): service is not bound. Do nothing.");