Add contextual card dismissal implementation
When users clcik on the remove button in dismissal view, the card should be marked as dismissed in the database, and the UI should be refreshed. Bug: 113783548, 119594116 Test: robotests Change-Id: I980600c4c0753ad5abc52ae63bac7196a4b818f1
This commit is contained in:
committed by
Yi-Ling Chuang
parent
4942fd2aff
commit
1e24cb02dc
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.homepage.contextualcards;
|
||||
|
||||
import android.content.ContentProvider;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.ContentValues;
|
||||
import android.content.UriMatcher;
|
||||
import android.database.Cursor;
|
||||
@@ -36,10 +37,15 @@ import com.android.settingslib.utils.ThreadUtils;
|
||||
*/
|
||||
public class CardContentProvider extends ContentProvider {
|
||||
|
||||
private static final String TAG = "CardContentProvider";
|
||||
|
||||
public static final String CARD_AUTHORITY = "com.android.settings.homepage.CardContentProvider";
|
||||
|
||||
public static final Uri URI = new Uri.Builder()
|
||||
.scheme(ContentResolver.SCHEME_CONTENT)
|
||||
.authority(CardContentProvider.CARD_AUTHORITY)
|
||||
.appendPath(CardDatabaseHelper.CARD_TABLE)
|
||||
.build();
|
||||
|
||||
private static final String TAG = "CardContentProvider";
|
||||
/** URI matcher for ContentProvider queries. */
|
||||
private static final UriMatcher URI_MATCHER = new UriMatcher(UriMatcher.NO_MATCH);
|
||||
/** URI matcher type for cards table */
|
||||
|
||||
Reference in New Issue
Block a user