File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/com/google/firebase/messaging Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
-
2
+ * [ changed] Added a NamedThreadFactory to WithinAppServiceConnection's service
3
+ connection Executor.
3
4
4
5
# 24.1.1
5
6
* [ changed] Bug fix in SyncTask to always unregister the receiver on the same
Original file line number Diff line number Diff line change 27
27
import androidx .annotation .Nullable ;
28
28
import androidx .annotation .VisibleForTesting ;
29
29
import com .google .android .gms .common .stats .ConnectionTracker ;
30
+ import com .google .android .gms .common .util .concurrent .NamedThreadFactory ;
30
31
import com .google .android .gms .tasks .Task ;
31
32
import com .google .android .gms .tasks .TaskCompletionSource ;
32
33
import com .google .errorprone .annotations .CanIgnoreReturnValue ;
@@ -109,7 +110,9 @@ void finish() {
109
110
110
111
@ SuppressLint ("ThreadPoolCreation" )
111
112
private static ScheduledThreadPoolExecutor createScheduledThreadPoolExecutor () {
112
- ScheduledThreadPoolExecutor threadPoolExecutor = new ScheduledThreadPoolExecutor (1 );
113
+ ScheduledThreadPoolExecutor threadPoolExecutor =
114
+ new ScheduledThreadPoolExecutor (
115
+ 1 , new NamedThreadFactory ("Firebase-FirebaseInstanceIdServiceConnection" ));
113
116
threadPoolExecutor .setKeepAliveTime (EnhancedIntentService .MESSAGE_TIMEOUT_S * 2 , SECONDS );
114
117
threadPoolExecutor .allowCoreThreadTimeOut (true );
115
118
return threadPoolExecutor ;
You can’t perform that action at this time.
0 commit comments