Skip to content

Commit

Permalink
fixed service
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Jan 4, 2021
1 parent 3c7f0f9 commit cab886d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "espero.jiofibatterynotifier"
minSdkVersion 17
targetSdkVersion 29
versionCode 5
versionName "1.5"
versionCode 6
versionName "1.6"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"properties": [],
"versionCode": 5,
"versionName": "1.5",
"versionCode": 6,
"versionName": "1.6",
"enabled": true,
"outputFile": "app-release.apk"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,14 @@ private void sendRequest(){
boolean charging = true;
if (m.find( )) {
percentage = m.group(2);
if(response.toLowerCase().contains("discharging")){
charging = false;
}
updateBatteryData(percentage, charging);
}else{
updateNotification("JioFi Not Connected", R.drawable.icon, false);
}
if(response.toLowerCase().contains("discharging")){
charging = false;
}
updateBatteryData(percentage, charging);

}, error -> {
updateNotification("JioFi Not Connected", R.drawable.icon, false);
// Log.d(TAG_FOREGROUND_SERVICE, "URL" + url);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/custom_message_contact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:fontFamily="sans-serif"
android:text="Android JioFi Battery Notifier 1.5"
android:text="Android JioFi Battery Notifier 1.6"
android:textAlignment="center"
android:textColor="#000"
android:textSize="18sp" />
Expand Down

0 comments on commit cab886d

Please sign in to comment.