Do not log Contextual card display when card is dismissed
If the db change comes from dismiss card uri. We don't need to log card display again. Fixes: 121196921 Test: Robolectric Change-Id: I4e222187fafa8325e803fa6ee17ebb0b51fb8cb2
This commit is contained in:
@@ -39,12 +39,18 @@ public class CardContentProvider extends ContentProvider {
|
||||
|
||||
public static final String CARD_AUTHORITY = "com.android.settings.homepage.CardContentProvider";
|
||||
|
||||
public static final Uri URI = new Uri.Builder()
|
||||
public static final Uri REFRESH_CARD_URI = new Uri.Builder()
|
||||
.scheme(ContentResolver.SCHEME_CONTENT)
|
||||
.authority(CardContentProvider.CARD_AUTHORITY)
|
||||
.appendPath(CardDatabaseHelper.CARD_TABLE)
|
||||
.build();
|
||||
|
||||
public static final Uri DELETE_CARD_URI = new Uri.Builder()
|
||||
.scheme(ContentResolver.SCHEME_CONTENT)
|
||||
.authority(CardContentProvider.CARD_AUTHORITY)
|
||||
.appendPath(CardDatabaseHelper.CardColumns.CARD_DISMISSED)
|
||||
.build();
|
||||
|
||||
private static final String TAG = "CardContentProvider";
|
||||
/** URI matcher for ContentProvider queries. */
|
||||
private static final UriMatcher URI_MATCHER = new UriMatcher(UriMatcher.NO_MATCH);
|
||||
|
||||
Reference in New Issue
Block a user