You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/astrid/src-legacy/com/timsu/astrid/activities/TaskList.java

48 lines
1.2 KiB
Java

/**
* Copyright (c) 2012 Todoroo Inc
*
* See the file "LICENSE" for the full license governing this code.
*/
package com.timsu.astrid.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.todoroo.andlib.service.ContextManager;
import com.todoroo.astrid.activity.TaskListActivity;
import com.todoroo.astrid.activity.TaskListFragment;
/**
* Legacy task shortcut, takes users to the updated {@link TaskListFragment}.
* This activity is around so users with existing desktop icons will
* be able to still launch Astrid.
*
* @author Tim Su <tim@todoroo.com>
*/
public class TaskList extends Activity {
// --- implementation
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ContextManager.setContext(this);
launchTaskList();
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
launchTaskList();
}
private void launchTaskList() {
Intent taskListIntent = new Intent(this, TaskListActivity.class);
startActivity(taskListIntent);
finish();
}
}