Skip to content

Commit aacd2a0

Browse files
committed
Update ScheduleProvider.java
Fix issue google#91 deleteDatabase not working under Lollipop
1 parent 4a08d75 commit aacd2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/google/samples/apps/iosched/provider/ScheduleProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public int update(Uri uri, ContentValues values, String selection, String[] sele
544544
public int delete(Uri uri, String selection, String[] selectionArgs) {
545545
String accountName = getCurrentAccountName(uri, false);
546546
LOGV(TAG, "delete(uri=" + uri + ", account=" + accountName + ")");
547-
if (uri == ScheduleContract.BASE_CONTENT_URI) {
547+
if (uri.equals(ScheduleContract.BASE_CONTENT_URI)) {
548548
// Handle whole database deletes (e.g. when signing out)
549549
deleteDatabase();
550550
notifyChange(uri);

0 commit comments

Comments
 (0)