Diff of /app/src/main/java/com/codesys/forge/MyService.java [a9ba7b] .. [6880df]  Maximize  Restore

Switch to unified view

a/app/src/main/java/com/codesys/forge/MyService.java b/app/src/main/java/com/codesys/forge/MyService.java
...
...
72
            case 3:
72
            case 3:
73
                url = "https://forge.codesys.com/forge/talk";
73
                url = "https://forge.codesys.com/forge/talk";
74
                title = getString(R.string.notification3_title);
74
                title = getString(R.string.notification3_title);
75
                description = getString(R.string.notification3_description);
75
                description = getString(R.string.notification3_description);
76
                break;
76
                break;
77
            case 4:
78
                url = "https://forge.codesys.com/forge/product-news";
79
                title = getString(R.string.notification4_title);
80
                description = getString(R.string.notification4_description);
81
                break;
77
            default:
82
            default:
78
                url = "url undefined";
83
                url = "url undefined";
79
                title = "title undefined";
84
                title = "title undefined";
80
                description = "description undefined";
85
                description = "description undefined";
81
                break;
86
                break;
...
...
131
                            CreateNotification(2);
136
                            CreateNotification(2);
132
                            break;
137
                            break;
133
                        case "/forge/talk/":
138
                        case "/forge/talk/":
134
                            CreateNotification(3);
139
                            CreateNotification(3);
135
                            break;
140
                            break;
141
                        case "/forge/product-news/":
142
                            CreateNotification(4);
143
                            break;
136
                    }
144
                    }
137
                }
145
                }
138
            }
146
            }
139
            catch(MalformedURLException e) {
147
            catch(MalformedURLException e) {
140
                Log.e("get news", e.getLocalizedMessage());
148
                Log.e("get news", e.getLocalizedMessage());