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

Unified Diff: samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/CommitCardView.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/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/CommitCardView.java
diff --git a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/CommitCardView.java b/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/CommitCardView.java
deleted file mode 100644
index ca4ab5bbeeb2cda2ea804f7ede94c956e707ad00..0000000000000000000000000000000000000000
--- a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/CommitCardView.java
+++ /dev/null
@@ -1,50 +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.githubsample;
-
-import android.content.Context;
-import android.os.Bundle;
-import android.support.v7.widget.CardView;
-import android.util.AttributeSet;
-
-import immi.CommitNode;
-
-public class CommitCardView extends CardView {
- public CommitCardView(Context context) {
- super(context);
- }
-
- public CommitCardView(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
-
- public CommitCardView(Context context, AttributeSet attrs, int defStyleAttr) {
- super(context, attrs, defStyleAttr);
- }
-
- public void setCommitNode(CommitNode node) {
- this.node = node;
- }
-
- public boolean isReady() {
- return node != null;
- }
-
- public String getTitle() { return node.getMessage(); }
- public String getAuthor() { return node.getAuthor(); }
- public String getDetails() { return node.getMessage(); }
- public String getImageUrl() { return node.getImage().getUrl(); }
-
- public Bundle prepareDetailsFragmentArgs() {
- Bundle args = new Bundle();
- args.putString(DetailsViewFragment.TITLE, getTitle());
- args.putString(DetailsViewFragment.AUTHOR, getAuthor());
- args.putString(DetailsViewFragment.DETAILS, getDetails());
- args.putString(DetailsViewFragment.IMAGE_URL,getImageUrl());
- return args;
- }
-
- private CommitNode node;
-}

Powered by Google App Engine
This is Rietveld 408576698