1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.chromoting; 6 7 import android.app.Activity; 8 import android.os.Bundle; 9 import android.view.Menu; 10 import android.view.MenuItem; 11 12 /** 13 * A dummy implementation of ActivityListener that will be passed to any activity requesting 14 * a capability that is not currently enabled. 15 */ 16 public class DummyActivityLifecycleListener implements ActivityLifecycleListener { 17 18 @Override 19 public void onActivityCreated (Activity activity, Bundle savedInstanceState) {} 20 21 @Override 22 public void onActivityDestroyed (Activity activity) {} 23 24 @Override 25 public void onActivityPaused (Activity activity) {} 26 27 @Override 28 public void onActivityResumed (Activity activity) {} 29 30 @Override 31 public void onActivitySaveInstanceState (Activity activity, Bundle outState) {} 32 33 @Override 34 public void onActivityStarted (Activity activity) {} 35 36 @Override 37 public void onActivityStopped (Activity activity) {} 38 39 @Override 40 public boolean onActivityCreatedOptionsMenu(Activity activity, Menu menu) { 41 return false; 42 } 43 44 @Override 45 public boolean onActivityOptionsItemSelected(Activity activity, MenuItem item) { 46 return false; 47 } 48 } 49