fun deleteChannel(jsonChannel: CumulusChannel) { val jsonString: String = jsonChannel.toString() val i = Intent("com.felkertech.cumulustv.RECEIVER") i.putExtra(INTENT_EXTRA_JSON, jsonString) i.putExtra(INTENT_EXTRA_ACTION, INTENT_EXTRA_ACTION_DELETE) sendBroadcast(i) finish() }
Deletes the provided channel and resyncs . Then the app closes .