AtscTvInput: Switch to the new buildInputId/buildChannelsUriForXXX API

Change-Id: Ibe757445aa087f2bedd2c645981ec99cce1dc8c4
This commit is contained in:
Jae Seo
2014-07-17 20:40:57 -07:00
parent 850c44e0ec
commit c9bdea0489

View File

@@ -69,9 +69,8 @@ public class AtscTvInputScanActivity extends Activity {
}
private void clearChannels() {
//Uri uri = TvContract.buildChannelsUriForInput(
// new ComponentName(this, AtscTvInputService.class));
Uri uri = null;
String id = TvContract.buildInputId(new ComponentName(this, AtscTvInputService.class));
Uri uri = TvContract.buildChannelsUriForInput(id);
getContentResolver().delete(uri, null, null);
}