Fix security exception for start foreground service for android 9

This commit is contained in:
Chumva 2019-11-06 12:01:55 +02:00
parent f527034c71
commit e14baf1208
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application <application
android:name="net.osmand.telegram.TelegramApplication" android:name="net.osmand.telegram.TelegramApplication"

View file

@ -5,7 +5,7 @@ apply plugin: 'kotlin-android-extensions'
android { android {
compileSdkVersion 28 compileSdkVersion 28
buildToolsVersion "27.0.3" buildToolsVersion "28.0.3"
sourceSets { sourceSets {
main { main {