Increased folder star touch area

This commit is contained in:
M66B 2023-06-09 12:22:32 +02:00
parent c52d0ddce9
commit 06e840747a
1 changed files with 11 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
@ -40,6 +41,7 @@ import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.TouchDelegate;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
@ -215,6 +217,15 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
ibSync.setOnClickListener(this);
if (btnHelp != null)
btnHelp.setOnClickListener(this);
if (tvFlagged != null && ibFlagged != null) {
Rect rect = new Rect(
tvFlagged.getLeft(),
ibFlagged.getTop(),
view.getRight(),
view.getBottom());
view.setTouchDelegate(new TouchDelegate(rect, ibFlagged));
}
}
private void unwire() {