| Index: samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java
|
| diff --git a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java b/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java
|
| deleted file mode 100644
|
| index 3035cbd6d3bd8218ecd1cb5d9d58dacefb90f6e0..0000000000000000000000000000000000000000
|
| --- a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java
|
| +++ /dev/null
|
| @@ -1,48 +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.app.Activity;
|
| -
|
| -import com.google.dartino.immisamples.Drawer;
|
| -import com.google.dartino.immisamples.Menu;
|
| -
|
| -import immi.AnyNode;
|
| -import immi.AnyNodePatch;
|
| -import immi.MenuNode;
|
| -import immi.MenuPatch;
|
| -
|
| -public final class LeftPresenter extends Drawer.PanePresenter {
|
| -
|
| - LeftPresenter(Activity activity) {
|
| - this.menu = new Menu(
|
| - activity,
|
| - android.R.layout.simple_list_item_activated_1,
|
| - android.R.id.text1);
|
| -
|
| - fragment = (NavigationDrawerFragment)
|
| - activity.getFragmentManager().findFragmentById(R.id.navigation_drawer);
|
| -
|
| - fragment.setupMenu(menu);
|
| - }
|
| -
|
| - @Override
|
| - public Drawer.PaneFragment getPaneFragment() {
|
| - return fragment;
|
| - }
|
| -
|
| - @Override
|
| - public void present(AnyNode node) {
|
| - menu.present(node.as(MenuNode.class));
|
| - }
|
| -
|
| - @Override
|
| - public void patch(AnyNodePatch patch) {
|
| - menu.patch(patch.as(MenuPatch.class));
|
| - }
|
| -
|
| - private NavigationDrawerFragment fragment;
|
| - private Menu menu;
|
| -}
|
|
|