Backward compatibility

This commit is contained in:
M66B 2019-10-05 14:10:46 +02:00
parent 3f2d636718
commit 40c93e6541
1 changed files with 3 additions and 1 deletions

View File

@ -1017,7 +1017,9 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
jchannel.getString("name"),
jchannel.getInt("importance"));
channel.setGroup(jchannel.getString("group"));
String group = jchannel.optString("group");
if (!TextUtils.isEmpty(group))
channel.setGroup(group);
if (jchannel.has("description") && !jchannel.isNull("description"))
channel.setDescription(jchannel.getString("description"));