Update STK application
1. Add checking for 'https://' url in LaunchBrowser()
2. Add 'Removing idle mode text' in launchIdleText()
-the Idle text should be deleted while processing 'refresh'
Bug : 5602742
Change-Id: Ifc374966a3fa91af0750dddfc6a8d713fd93bc45
Signed-off-by: dujin.cha <dujin.cha@samsung.com>
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index cd47716..54698dc 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -657,7 +657,7 @@
Uri data = null;
if (settings.url != null) {
CatLog.d(this, "settings.url = " + settings.url);
- if (settings.url.startsWith("http://")) {
+ if ((settings.url.startsWith("http://") || (settings.url.startsWith("https://")))) {
data = Uri.parse(settings.url);
} else {
String modifiedUrl = "http://" + settings.url;
@@ -714,8 +714,10 @@
private void launchIdleText() {
TextMessage msg = mCurrentCmd.geTextMessage();
+
if (msg == null) {
- CatLog.d(this, "mCurrentCmd.getTextMessage is NULL");
+ CatLog.d(this, "mCurrent.getTextMessage is NULL");
+ mNotificationManager.cancel(STK_NOTIFICATION_ID);
return;
}
if (msg.text == null) {