summaryrefslogtreecommitdiffstats
path: root/samples/AppNavigation
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-05-01 18:25:01 -0700
committerAdam Powell <adamp@google.com>2012-05-01 18:34:30 -0700
commitffb145cea250808c2a72108c915ae04bd15d3833 (patch)
tree6afe134e873eb0b60a3d696867c50981df613b82 /samples/AppNavigation
parent8749a298c0a94df8fc511bdd08fef4a59d0fadf7 (diff)
downloadandroid_development-ffb145cea250808c2a72108c915ae04bd15d3833.tar.gz
android_development-ffb145cea250808c2a72108c915ae04bd15d3833.tar.bz2
android_development-ffb145cea250808c2a72108c915ae04bd15d3833.zip
Follow framework API change in TaskStackBuilder
Change-Id: I8d83c2a680b2004fded46630166fc1f9b09a5038
Diffstat (limited to 'samples/AppNavigation')
-rw-r--r--samples/AppNavigation/src/com/example/android/appnavigation/app/InterstitialMessageActivity.java2
-rw-r--r--samples/AppNavigation/src/com/example/android/appnavigation/app/NotificationsActivity.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/AppNavigation/src/com/example/android/appnavigation/app/InterstitialMessageActivity.java b/samples/AppNavigation/src/com/example/android/appnavigation/app/InterstitialMessageActivity.java
index c96995ca8..e7aee90c6 100644
--- a/samples/AppNavigation/src/com/example/android/appnavigation/app/InterstitialMessageActivity.java
+++ b/samples/AppNavigation/src/com/example/android/appnavigation/app/InterstitialMessageActivity.java
@@ -32,7 +32,7 @@ public class InterstitialMessageActivity extends Activity {
}
public void onViewContent(View v) {
- TaskStackBuilder.from(this)
+ TaskStackBuilder.create(this)
.addParentStack(ContentViewActivity.class)
.addNextIntent(new Intent(this, ContentViewActivity.class)
.putExtra(ContentViewActivity.EXTRA_TEXT, "From Interstitial Notification"))
diff --git a/samples/AppNavigation/src/com/example/android/appnavigation/app/NotificationsActivity.java b/samples/AppNavigation/src/com/example/android/appnavigation/app/NotificationsActivity.java
index bf338be75..cfb3b427a 100644
--- a/samples/AppNavigation/src/com/example/android/appnavigation/app/NotificationsActivity.java
+++ b/samples/AppNavigation/src/com/example/android/appnavigation/app/NotificationsActivity.java
@@ -41,7 +41,7 @@ public class NotificationsActivity extends Activity {
.setContentTitle("Direct Notification")
.setContentText("This will open the content viewer")
.setAutoCancel(true)
- .setContentIntent(TaskStackBuilder.from(this)
+ .setContentIntent(TaskStackBuilder.create(this)
.addParentStack(ContentViewActivity.class)
.addNextIntent(new Intent(this, ContentViewActivity.class)
.putExtra(ContentViewActivity.EXTRA_TEXT, "From Notification"))