Skip to content

Commit e881741

Browse files
committed
Move BackgroundRunnable to it's own file
1 parent 2e36697 commit e881741

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.onesignal
2+
3+
import android.os.Process
4+
5+
internal open class BackgroundRunnable : Runnable {
6+
override fun run() {
7+
Thread.currentThread().priority = Process.THREAD_PRIORITY_BACKGROUND
8+
}
9+
}

OneSignalSDK/onesignal/src/main/java/com/onesignal/OSNotificationDataController.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,6 @@ private void runRunnableOnThread(Runnable runnable) {
251251
runnable.run();
252252
}
253253

254-
private static class BackgroundRunnable implements Runnable {
255-
@Override
256-
public void run() {
257-
Thread.currentThread().setPriority(Process.THREAD_PRIORITY_BACKGROUND);
258-
}
259-
}
260-
261254
interface InvalidOrDuplicateNotificationCallback {
262255

263256
/**

0 commit comments

Comments
 (0)