Skip to content

Commit

Permalink
Lints: ingore ClickableViewAccessibility warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Nov 29, 2024
1 parent 202e0ea commit 141cbc2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright 2023 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
// Copyright 2015-2024 Uwe Trottmann

package com.battlelancer.seriesguide.lists

import android.annotation.SuppressLint
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
Expand All @@ -24,6 +25,8 @@ class ListsReorderDialogFragment : AppCompatDialogFragment() {
private var binding: DialogListsReorderBinding? = null
private lateinit var adapter: ListsAdapter

// ClickableViewAccessibility: there is nothing to click
@SuppressLint("ClickableViewAccessibility")
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val binding = DialogListsReorderBinding.inflate(layoutInflater)
this.binding = binding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright 2014, 2015, 2017-2019 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
// Copyright 2014-2024 Uwe Trottmann

package com.uwetrottmann.seriesguide.widgets.dragsortview;

import android.annotation.SuppressLint;
import android.graphics.Point;
import android.view.GestureDetector;
import android.view.HapticFeedbackConstants;
Expand Down Expand Up @@ -238,6 +239,8 @@ public boolean startDrag(int position, int deltaX, int deltaY) {
return mDragging;
}

// ClickableViewAccessibility: there is nothing to click
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouch(View v, MotionEvent ev) {
if (!mDslv.isDragEnabled() || mDslv.listViewIntercepted()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2012 Carl Bauer
// Copyright 2014, 2015, 2017-2019 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
// Copyright 2012 Carl Bauer
// Copyright 2014-2024 Uwe Trottmann

package com.uwetrottmann.seriesguide.widgets.dragsortview;

Expand Down Expand Up @@ -1522,6 +1522,8 @@ public boolean stopDrag(boolean remove, float velocityX) {
}
}

// ClickableViewAccessibility: there is nothing to click
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouchEvent(MotionEvent ev) {
if (mIgnoreTouchEvent) {
Expand Down

0 comments on commit 141cbc2

Please sign in to comment.