diff options
author | Dongwon Kang <dwkang@google.com> | 2017-02-07 11:54:55 -0800 |
---|---|---|
committer | Dongwon Kang <dwkang@google.com> | 2017-02-16 13:39:37 -0800 |
commit | 2ccad315aafb334c4115f0c3e45dcf0f5d9ce403 (patch) | |
tree | 1143f5eb533addca79c95948ebca09fc5e1a1e3d /src/com/android/providers/tv/TransientRowHelper.java | |
parent | b12969008638e13de3f7b04dedb21c1e778069f1 (diff) | |
download | TvProvider-2ccad315aafb334c4115f0c3e45dcf0f5d9ce403.tar.gz |
Add PreviewPrograms table in TvProvider
Currently, Programs class is being used for storing both linear
tv program and preview program. This change adds PreviewPrograms
class for clear separation.
Test: build and cts-tradefed run cts -m CtsTvTestCases
Bug: 34853064
Change-Id: I1ef2cb4abf410b6b70ea6e46d52f7c3f14781955
Diffstat (limited to 'src/com/android/providers/tv/TransientRowHelper.java')
-rw-r--r-- | src/com/android/providers/tv/TransientRowHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/providers/tv/TransientRowHelper.java b/src/com/android/providers/tv/TransientRowHelper.java index 81c8901..b6f890e 100644 --- a/src/com/android/providers/tv/TransientRowHelper.java +++ b/src/com/android/providers/tv/TransientRowHelper.java @@ -20,7 +20,7 @@ import android.content.Context; import android.content.SharedPreferences; import android.database.sqlite.SQLiteDatabase; import android.media.tv.TvContract.Channels; -import android.media.tv.TvContract.Programs; +import android.media.tv.TvContract.PreviewPrograms; import android.os.SystemClock; import android.preference.PreferenceManager; @@ -77,7 +77,7 @@ public class TransientRowHelper { } SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); // Delete all the transient programs and channels. - db.delete(TvProvider.PROGRAMS_TABLE, Programs.COLUMN_TRANSIENT + "=1", null); + db.delete(TvProvider.PREVIEW_PROGRAMS_TABLE, PreviewPrograms.COLUMN_TRANSIENT + "=1", null); db.delete(TvProvider.CHANNELS_TABLE, Channels.COLUMN_TRANSIENT + "=1", null); setLastTransientRowsDeletedTime(); } |