File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
android/app/src/main/java/me/tinykitten/trainlcd Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import android.graphics.Color
1111import android.graphics.Paint
1212import android.graphics.drawable.Icon
1313import android.os.Build
14+ import android.os.Bundle
1415import com.facebook.react.bridge.ReactApplicationContext
1516import com.facebook.react.bridge.ReactContextBaseJavaModule
1617import com.facebook.react.bridge.ReactMethod
@@ -199,7 +200,9 @@ class LiveUpdateModule(reactContext: ReactApplicationContext) :
199200 .setOngoing(true )
200201 .setOnlyAlertOnce(true )
201202 .setShortCriticalText(shortCriticalText)
202- .setRequestPromotedOngoing(true )
203+ .addExtras(Bundle ().apply {
204+ putBoolean(Notification .EXTRA_REQUEST_PROMOTED_ONGOING , true )
205+ })
203206
204207 createContentIntent()?.let { builder.setContentIntent(it) }
205208
You can’t perform that action at this time.
0 commit comments