summaryrefslogtreecommitdiff
path: root/src/com/android/videoeditor/ProjectsActivity.java
diff options
context:
space:
mode:
authorShih-chia Cheng <shihchia@google.com>2011-06-13 12:59:16 +0800
committerShih-chia Cheng <shihchia@google.com>2011-06-16 12:04:59 +0800
commit258481be4734642b144c37f6b6572d8c85263f37 (patch)
tree6fe9f662709b1c15e8e6ac45a6118a5d593eaa9b /src/com/android/videoeditor/ProjectsActivity.java
parent05be941a5cc0347e8b67deb0a91d70e91105ccaf (diff)
downloadVideoEditor-258481be4734642b144c37f6b6572d8c85263f37.tar.gz
Re-engineer api service listener
Change-Id: Ic251f27ddf8e8b675fce4886a3517ab5972f1f79
Diffstat (limited to 'src/com/android/videoeditor/ProjectsActivity.java')
-rwxr-xr-xsrc/com/android/videoeditor/ProjectsActivity.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/videoeditor/ProjectsActivity.java b/src/com/android/videoeditor/ProjectsActivity.java
index c0ebbed..e431850 100755
--- a/src/com/android/videoeditor/ProjectsActivity.java
+++ b/src/com/android/videoeditor/ProjectsActivity.java
@@ -35,18 +35,20 @@ import android.widget.TextView;
import android.widget.Toast;
import com.android.videoeditor.service.ApiService;
+import com.android.videoeditor.service.ApiServiceListener;
import com.android.videoeditor.service.VideoEditorProject;
-import com.android.videoeditor.service.ApiService.ApiServiceListener;
import com.android.videoeditor.util.FileUtils;
import com.android.videoeditor.widgets.ProjectsCarouselView;
import com.android.videoeditor.widgets.ProjectsCarouselViewHelper;
import com.android.videoeditor.widgets.ProjectsCarouselViewHelper.CarouselItemListener;
/**
- * This activity is used to manage projects
+ * This activity manages projects on a CarouselView.
+ * It responds to user clicks on the carousel to load or create projects.
*/
public class ProjectsActivity extends Activity implements CarouselItemListener {
- // Request codes
+ // Request codes defining user actions in this activity.
+ // Users can create new or load existing projects.
private static final int REQUEST_CODE_OPEN_PROJECT = 1;
private static final int REQUEST_CODE_CREATE_PROJECT = 2;
@@ -70,7 +72,8 @@ public class ProjectsActivity extends Activity implements CarouselItemListener {
private ProjectsCarouselViewHelper mProjectsCarouselViewHelper;
/**
- * The service listener
+ * Listener that responds to video editor's state change when the list of projects
+ * is loaded. It updates the project carousel view with the carousel view helper.
*/
private class ServiceListener extends ApiServiceListener {
/**