1 /*
2  * Copyright (C) 2016 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.dialer.app.legacybindings;
18 
19 import android.app.Activity;
20 import android.support.annotation.NonNull;
21 import android.view.ViewGroup;
22 import com.android.dialer.app.calllog.CallLogAdapter;
23 import com.android.dialer.app.calllog.calllogcache.CallLogCache;
24 import com.android.dialer.app.contactinfo.ContactInfoCache;
25 import com.android.dialer.app.voicemail.VoicemailPlaybackPresenter;
26 import com.android.dialer.blocking.FilteredNumberAsyncQueryHandler;
27 
28 /** Default implementation for dialer legacy bindings. */
29 public class DialerLegacyBindingsStub implements DialerLegacyBindings {
30 
31   @Override
newCallLogAdapter( Activity activity, ViewGroup alertContainer, CallLogAdapter.CallFetcher callFetcher, CallLogAdapter.MultiSelectRemoveView multiSelectRemoveView, CallLogAdapter.OnActionModeStateChangedListener actionModeStateChangedListener, CallLogCache callLogCache, ContactInfoCache contactInfoCache, VoicemailPlaybackPresenter voicemailPlaybackPresenter, @NonNull FilteredNumberAsyncQueryHandler filteredNumberAsyncQueryHandler, int activityType)32   public CallLogAdapter newCallLogAdapter(
33       Activity activity,
34       ViewGroup alertContainer,
35       CallLogAdapter.CallFetcher callFetcher,
36       CallLogAdapter.MultiSelectRemoveView multiSelectRemoveView,
37       CallLogAdapter.OnActionModeStateChangedListener actionModeStateChangedListener,
38       CallLogCache callLogCache,
39       ContactInfoCache contactInfoCache,
40       VoicemailPlaybackPresenter voicemailPlaybackPresenter,
41       @NonNull FilteredNumberAsyncQueryHandler filteredNumberAsyncQueryHandler,
42       int activityType) {
43     return new CallLogAdapter(
44         activity,
45         alertContainer,
46         callFetcher,
47         multiSelectRemoveView,
48         actionModeStateChangedListener,
49         callLogCache,
50         contactInfoCache,
51         voicemailPlaybackPresenter,
52         filteredNumberAsyncQueryHandler,
53         activityType);
54   }
55 }
56