Skip to content

Commit

Permalink
Update ScheduleProvider.java
Browse files Browse the repository at this point in the history
Fix issue #91 deleteDatabase not working under Lollipop
  • Loading branch information
MaTriXy committed Dec 11, 2014
1 parent 4a08d75 commit aacd2a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ public int update(Uri uri, ContentValues values, String selection, String[] sele
public int delete(Uri uri, String selection, String[] selectionArgs) {
String accountName = getCurrentAccountName(uri, false);
LOGV(TAG, "delete(uri=" + uri + ", account=" + accountName + ")");
if (uri == ScheduleContract.BASE_CONTENT_URI) {
if (uri.equals(ScheduleContract.BASE_CONTENT_URI)) {
// Handle whole database deletes (e.g. when signing out)
deleteDatabase();
notifyChange(uri);
Expand Down

0 comments on commit aacd2a0

Please sign in to comment.