Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/CreateTodoItem.java

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/CreateTodoItem.java
diff --git a/samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/CreateTodoItem.java b/samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/CreateTodoItem.java
deleted file mode 100644
index e0ed36d36cfeaaf3f3144783f7988d1bdaa5dd23..0000000000000000000000000000000000000000
--- a/samples/todomvc/android/TodoMVC/app/src/main/java/com/google/dartino/todomvc/CreateTodoItem.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-package com.google.dartino.todomvc;
-
-import android.content.Intent;
-import android.support.v7.app.ActionBarActivity;
-import android.os.Bundle;
-import android.view.Menu;
-import android.view.MenuItem;
-import android.widget.EditText;
-
-public class CreateTodoItem extends ActionBarActivity {
-
- private EditText itemTitle;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_create_todo_item);
- itemTitle = (EditText) findViewById(R.id.new_item_text);
- }
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- // Inflate the menu; this adds items to the action bar if it is present.
- getMenuInflater().inflate(R.menu.menu_create_todo_item, menu);
- return true;
- }
-
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- switch (item.getItemId()) {
- case R.id.action_cancel:
- setResult(RESULT_CANCELED);
- finish();
- return true;
- case R.id.action_save:
- String title = itemTitle.getText().toString();
- if (!title.isEmpty()) {
- Intent intent = new Intent();
- intent.putExtra("ItemTitle", title);
- setResult(RESULT_OK, intent);
- finish();
- return true;
- }
- }
-
- return super.onOptionsItemSelected(item);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698