1 /* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License 15 */ 16 17 package com.android.bubble.stub; 18 19 import android.graphics.drawable.Drawable; 20 import android.support.annotation.NonNull; 21 import com.android.bubble.Bubble; 22 import com.android.bubble.BubbleInfo; 23 import java.util.List; 24 import javax.inject.Inject; 25 26 public class BubbleStub implements Bubble { 27 28 @Inject BubbleStub()29 public BubbleStub() {} 30 31 @Override show()32 public void show() {} 33 34 @Override hide()35 public void hide() {} 36 37 @Override isVisible()38 public boolean isVisible() { 39 return false; 40 } 41 42 @Override isDismissed()43 public boolean isDismissed() { 44 return false; 45 } 46 47 @Override setBubbleInfo(@onNull BubbleInfo bubbleInfo)48 public void setBubbleInfo(@NonNull BubbleInfo bubbleInfo) {} 49 50 @Override updateActions(@onNull List<BubbleInfo.Action> actions)51 public void updateActions(@NonNull List<BubbleInfo.Action> actions) {} 52 53 @Override updatePhotoAvatar(@onNull Drawable avatar)54 public void updatePhotoAvatar(@NonNull Drawable avatar) {} 55 56 @Override updateAvatar(@onNull Drawable avatar)57 public void updateAvatar(@NonNull Drawable avatar) {} 58 59 @Override showText(@onNull CharSequence text)60 public void showText(@NonNull CharSequence text) {} 61 } 62