From 814bbef47140445a582ce004ff04ab1a5b48b7e9 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Sat, 28 Jan 2012 23:49:08 -0800 Subject: [PATCH] Renamed another activity to fragment --- ...{NotificationActivity.java => NotificationFragment.java} | 6 +++--- .../com/todoroo/astrid/reminders/Notifications.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename astrid/plugin-src/com/todoroo/astrid/reminders/{NotificationActivity.java => NotificationFragment.java} (98%) diff --git a/astrid/plugin-src/com/todoroo/astrid/reminders/NotificationActivity.java b/astrid/plugin-src/com/todoroo/astrid/reminders/NotificationFragment.java similarity index 98% rename from astrid/plugin-src/com/todoroo/astrid/reminders/NotificationActivity.java rename to astrid/plugin-src/com/todoroo/astrid/reminders/NotificationFragment.java index 0b286b18d..8b8b8b0d0 100644 --- a/astrid/plugin-src/com/todoroo/astrid/reminders/NotificationActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/reminders/NotificationFragment.java @@ -61,7 +61,7 @@ import com.todoroo.astrid.ui.NumberPicker; * @author timsu * */ -public class NotificationActivity extends TaskListFragment implements OnTimeSetListener { +public class NotificationFragment extends TaskListFragment implements OnTimeSetListener { // --- constants @@ -163,9 +163,9 @@ public class NotificationActivity extends TaskListFragment implements OnTimeSetL LinearLayout snoozePicker; NumberPicker snoozeValue; Spinner snoozeUnits; - NotificationActivity parent; + NotificationFragment parent; - public SnoozeDialog(NotificationActivity parent) { + public SnoozeDialog(NotificationFragment parent) { super(parent.getActivity()); this.parent = parent; diff --git a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java index 088c6b185..c9853bf9e 100644 --- a/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java +++ b/astrid/plugin-src/com/todoroo/astrid/reminders/Notifications.java @@ -164,7 +164,7 @@ public class Notifications extends BroadcastReceiver { Intent notifyIntent = new Intent(context, NotificationWrapperActivity.class); notifyIntent.setAction("NOTIFY" + id); //$NON-NLS-1$ - notifyIntent.putExtra(NotificationActivity.TOKEN_ID, id); + notifyIntent.putExtra(NotificationFragment.TOKEN_ID, id); notifyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); notifyIntent.putExtra(TaskListFragment.TOKEN_SOURCE, Constants.SOURCE_NOTIFICATION);