Skip to content

Commit

Permalink
fix jobintentservice
Browse files Browse the repository at this point in the history
  • Loading branch information
j4velin committed Jul 1, 2019
1 parent 6207cfb commit 424d395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 5 additions & 3 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package="de.j4velin.pedometer"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="159"
android:versionName="1.5.9">
android:versionCode="1510"
android:versionName="1.5.10">

<uses-sdk
android:minSdkVersion="19"
Expand All @@ -16,6 +16,7 @@

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

<application
android:allowBackup="true"
Expand Down Expand Up @@ -85,7 +86,8 @@
android:resource="@xml/widget"/>
</receiver>

<service android:name=".widget.WidgetUpdateService"/>
<service android:name=".widget.WidgetUpdateService" android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.NonNull;
import android.support.v4.app.JobIntentService;

Expand All @@ -35,11 +34,6 @@ static void enqueueUpdate(Context context) {
enqueueWork(context, WidgetUpdateService.class, JOB_ID, new Intent());
}

@Override
public IBinder onBind(final Intent intent) {
return null;
}

@Override
protected void onHandleWork(@NonNull Intent intent) {
Database db = Database.getInstance(this);
Expand Down

0 comments on commit 424d395

Please sign in to comment.