summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2013-06-14 14:12:41 +0100
committerMathew Inwood <mathewi@google.com>2013-06-14 15:33:03 +0100
commit876a846edc6a9d9c6957ee0f63b01951763e3606 (patch)
tree5df39128aee62dd2aac19f35e3951413147a7275 /src
parente572fe46f75adfb1adbf3c2a6812d1e3dbdee5e1 (diff)
downloadandroid_packages_apps_Trebuchet-876a846edc6a9d9c6957ee0f63b01951763e3606.tar.gz
android_packages_apps_Trebuchet-876a846edc6a9d9c6957ee0f63b01951763e3606.tar.bz2
android_packages_apps_Trebuchet-876a846edc6a9d9c6957ee0f63b01951763e3606.zip
Add a request code for derived activities to start from.
This allows derived activities to use their own activity request codes that don't overlap with the ones used in Launcher. Change-Id: I1337dde550c6bd748dad80e7c62ea6ce15c17374
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Launcher.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 3adfb9508..46943b510 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -128,6 +128,12 @@ public class Launcher extends Activity
private static final int REQUEST_BIND_APPWIDGET = 11;
+ /**
+ * IntentStarter uses request codes starting with this. This must be greater than all activity
+ * request codes used internally.
+ */
+ protected static final int REQUEST_LAST = 100;
+
static final String EXTRA_SHORTCUT_DUPLICATE = "duplicate";
static final int SCREEN_COUNT = 5;