Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1023286 // androidIsUIThread

JavaX fragment (include)

1  
import android.os.*;
2  
3  
sbool androidIsUIThread() {
4  
  ret Looper.myLooper() == Looper.getMainLooper();
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023286
Snippet name: androidIsUIThread
Eternal ID of this version: #1023286/1
Text MD5: 5362b5851d5bae76da40eb338dc30b42
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-24 14:10:47
Source code size: 106 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 258 / 309
Referenced in: [show references]