diff options
author | Winson Chung <winsonc@google.com> | 2011-04-13 11:27:36 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-04-14 10:13:09 -0700 |
commit | 97d85d23b013347bead4e2f5fa430a79ce69431e (patch) | |
tree | 4e72157c6814cb5c517b09ea14fd4474acb9c7c9 /src/com/android/launcher2/Utilities.java | |
parent | 721a06bb6564a4ebe6dc6bf364cb569d255705ac (diff) | |
download | packages_apps_trebuchet-97d85d23b013347bead4e2f5fa430a79ce69431e.zip packages_apps_trebuchet-97d85d23b013347bead4e2f5fa430a79ce69431e.tar.gz packages_apps_trebuchet-97d85d23b013347bead4e2f5fa430a79ce69431e.tar.bz2 |
Fixing focus issues in Launcher (keyboard support).
Change-Id: Ieafd713393daf5628f229a66441bd3ed293245da
Diffstat (limited to 'src/com/android/launcher2/Utilities.java')
-rw-r--r-- | src/com/android/launcher2/Utilities.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index 8ab22eb..cd98cab 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher2/Utilities.java @@ -16,6 +16,8 @@ package com.android.launcher2; +import java.util.Random; + import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; @@ -389,4 +391,8 @@ final class Utilities { } return n; } + + static int generateRandomId() { + return new Random(System.currentTimeMillis()).nextInt(1 << 24); + } } |