Browse Source

Remove auto start behavior

main
Pekka Helenius 2 years ago
parent
commit
d411d88c9f
2 changed files with 1 additions and 10 deletions
  1. +0
    -9
      app/src/main/AndroidManifest.xml
  2. +1
    -1
      app/src/main/java/org/dystopia/email/ServiceSynchronize.java

+ 0
- 9
app/src/main/AndroidManifest.xml View File

@ -4,7 +4,6 @@
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
@ -120,13 +119,5 @@
android:resource="@xml/widget" /> android:resource="@xml/widget" />
</receiver> </receiver>
<receiver android:name=".ReceiverAutostart">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
</application> </application>
</manifest> </manifest>

+ 1
- 1
app/src/main/java/org/dystopia/email/ServiceSynchronize.java View File

@ -343,7 +343,7 @@ public class ServiceSynchronize extends LifecycleService {
} }
} }
return START_STICKY;
return START_NOT_STICKY;
} }
private Notification.Builder getNotificationService(TupleAccountStats stats) { private Notification.Builder getNotificationService(TupleAccountStats stats) {


Loading…
Cancel
Save