IPTV-Android icon indicating copy to clipboard operation
IPTV-Android copied to clipboard

app crash when click on refresh button

Open javed-ramzan opened this issue 4 years ago • 1 comments

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.

javed-ramzan avatar Oct 12 '21 10:10 javed-ramzan

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());
        }

x011 avatar Mar 24 '22 23:03 x011