mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 13:24:12 +00:00
Bug 708151 - Fix switch indentation in BrowserProvider (r=blassey, a=mfinkle)
This commit is contained in:
parent
1a7516c84e
commit
acefaa8534
@ -540,37 +540,37 @@ public class BrowserProvider extends ContentProvider {
|
||||
deleted = deleteBookmarks(uri, selection, selectionArgs);
|
||||
deleteUnusedImages(uri);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
case HISTORY_ID:
|
||||
Log.d(LOGTAG, "Delete on HISTORY_ID: " + uri);
|
||||
case HISTORY_ID:
|
||||
Log.d(LOGTAG, "Delete on HISTORY_ID: " + uri);
|
||||
|
||||
selection = concatenateWhere(selection, TABLE_HISTORY + "._id = ?");
|
||||
selectionArgs = appendSelectionArgs(selectionArgs,
|
||||
new String[] { Long.toString(ContentUris.parseId(uri)) });
|
||||
// fall through
|
||||
case HISTORY: {
|
||||
Log.d(LOGTAG, "Deleting history: " + uri);
|
||||
deleted = deleteHistory(uri, selection, selectionArgs);
|
||||
deleteUnusedImages(uri);
|
||||
break;
|
||||
}
|
||||
selection = concatenateWhere(selection, TABLE_HISTORY + "._id = ?");
|
||||
selectionArgs = appendSelectionArgs(selectionArgs,
|
||||
new String[] { Long.toString(ContentUris.parseId(uri)) });
|
||||
// fall through
|
||||
case HISTORY: {
|
||||
Log.d(LOGTAG, "Deleting history: " + uri);
|
||||
deleted = deleteHistory(uri, selection, selectionArgs);
|
||||
deleteUnusedImages(uri);
|
||||
break;
|
||||
}
|
||||
|
||||
case IMAGES_ID:
|
||||
Log.d(LOGTAG, "Delete on IMAGES_ID: " + uri);
|
||||
case IMAGES_ID:
|
||||
Log.d(LOGTAG, "Delete on IMAGES_ID: " + uri);
|
||||
|
||||
selection = concatenateWhere(selection, TABLE_IMAGES + "._id = ?");
|
||||
selectionArgs = appendSelectionArgs(selectionArgs,
|
||||
new String[] { Long.toString(ContentUris.parseId(uri)) });
|
||||
// fall through
|
||||
case IMAGES: {
|
||||
Log.d(LOGTAG, "Deleting images: " + uri);
|
||||
deleted = deleteImages(uri, selection, selectionArgs);
|
||||
break;
|
||||
}
|
||||
selection = concatenateWhere(selection, TABLE_IMAGES + "._id = ?");
|
||||
selectionArgs = appendSelectionArgs(selectionArgs,
|
||||
new String[] { Long.toString(ContentUris.parseId(uri)) });
|
||||
// fall through
|
||||
case IMAGES: {
|
||||
Log.d(LOGTAG, "Deleting images: " + uri);
|
||||
deleted = deleteImages(uri, selection, selectionArgs);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
throw new UnsupportedOperationException("Unknown delete URI " + uri);
|
||||
default:
|
||||
throw new UnsupportedOperationException("Unknown delete URI " + uri);
|
||||
}
|
||||
|
||||
Log.d(LOGTAG, "Deleted " + deleted + " rows for URI: " + uri);
|
||||
|
Loading…
Reference in New Issue
Block a user