×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Hyunjae Choi
Added: Apr 20, 2021 1:35 AM
Modified: Apr 20, 2021 1:44 AM
Views: 3978
Tags: no tags
  1. final ArrayList<Display> displays = getValidDisplayList();
  2. for (int i = 0; i < displays.size(); i++) {
  3.         final Display display = displays.get(i);
  4.         if (display != null) {
  5.                 int userId = getUserIdForCMU(display.getDisplayId());
  6.                 if (userId == UserHandle.USER_NULL || userId != changingUserId) {
  7.                         continue;
  8.                 }
  9.         }
  10. }