1 /* 2 * Copyright (C) 2021 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 package com.android.calendar.month 17 18 import android.content.Context 19 import android.util.AttributeSet 20 import android.view.MotionEvent 21 import android.widget.ListView 22 import com.android.calendar.Utils 23 24 class MonthListView : ListView { 25 constructor(context: Context?) : super(context) {} 26 constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : 27 super(context, attrs, defStyle) {} 28 constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {} 29 30 @Override onTouchEventnull31 override fun onTouchEvent(ev: MotionEvent?): Boolean { 32 return super.onTouchEvent(ev) 33 } 34 35 @Override onInterceptTouchEventnull36 override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean { 37 return super.onInterceptTouchEvent(ev) 38 } 39 40 companion object { 41 private const val TAG = "MonthListView" 42 } 43 }