From df17173a5611c0c3cadabbd850b1d43cb18186c4 Mon Sep 17 00:00:00 2001 From: Unknown Moon Date: Tue, 7 Jun 2016 14:49:00 +0800 Subject: [PATCH 1/2] Display service on/off message. --- app/src/main/java/unknownmoon/cryforlight/LightService.java | 2 +- app/src/main/java/unknownmoon/cryforlight/MainActivity.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/unknownmoon/cryforlight/LightService.java b/app/src/main/java/unknownmoon/cryforlight/LightService.java index 0d197ab..e6631bf 100644 --- a/app/src/main/java/unknownmoon/cryforlight/LightService.java +++ b/app/src/main/java/unknownmoon/cryforlight/LightService.java @@ -142,7 +142,7 @@ public void onDestroy() { releaseWakeLock(); - showMsg("Service off", Toast.LENGTH_SHORT); + showMsg("Service Off", Toast.LENGTH_SHORT); broadcastStopped(); } diff --git a/app/src/main/java/unknownmoon/cryforlight/MainActivity.java b/app/src/main/java/unknownmoon/cryforlight/MainActivity.java index 4ce6915..f7ad6a0 100644 --- a/app/src/main/java/unknownmoon/cryforlight/MainActivity.java +++ b/app/src/main/java/unknownmoon/cryforlight/MainActivity.java @@ -44,6 +44,8 @@ public void onReceive(Context context, final Intent intent) { FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setActivated(mIsServiceOn); + + showMsg("Service On", Toast.LENGTH_SHORT); } }; From d276d51a0847c7d80298e7210bd8011205f1138c Mon Sep 17 00:00:00 2001 From: Unknown Moon Date: Tue, 7 Jun 2016 14:50:10 +0800 Subject: [PATCH 2/2] Update version infomation --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5b2ab57..e3df011 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "unknownmoon.cryforlight" minSdkVersion 23 targetSdkVersion 23 - versionCode 2 - versionName "0.2" + versionCode 3 + versionName "0.2.1" } buildTypes { release {