IPTV-Android
IPTV-Android copied to clipboard
app crash when click on refresh button
First of all, great work.. i'm facing a issue, After selecting a specific country, the application crashes when you click the refresh button on the taskbar.
ChannelsActivity.java
Change to :
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_channels);
try {
String myData = getIntent().getStringExtra("title");
if(!myData.isEmpty()) {
getSupportActionBar().setSubtitle(Html.fromHtml("<small>" + myData + "</small>"));
}
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
} catch (Exception fdfd) {
Log.e("Google", "Error: " + fdfd.fillInStackTrace());
}