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"); Timber.e(e, "query deleted");
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {
db.release(); db.close();
} }
} }
} catch (RemoteException e) { } catch (Exception e) {
throw new RuntimeException(e); Timber.e(e, "Error while clearing history");
} finally { } finally {
if (cursor != null) { if (cursor != null) {
cursor.close(); cursor.close();