Fix crash on content provider client already released #4654 (#4659)

This commit is contained in:
Madhur Gupta 2021-10-06 16:14:23 +05:30 committed by GitHub
parent 25b9244066
commit 51e0f218c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,11 +80,11 @@ public class RecentSearchesDao {
Timber.e(e, "query deleted");
throw new RuntimeException(e);
} finally {
db.release();
db.close();
}
}
} catch (RemoteException e) {
throw new RuntimeException(e);
} catch (Exception e) {
Timber.e(e, "Error while clearing history");
} finally {
if (cursor != null) {
cursor.close();