Increased folder star touch area

pull/212/head
M66B 2 years ago
parent c52d0ddce9
commit 06e840747a

@ -27,6 +27,7 @@ import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.content.res.ColorStateList; import android.content.res.ColorStateList;
import android.graphics.Color; import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface; import android.graphics.Typeface;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
@ -40,6 +41,7 @@ import android.view.LayoutInflater;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.SubMenu; import android.view.SubMenu;
import android.view.TouchDelegate;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.Button; import android.widget.Button;
@ -215,6 +217,15 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
ibSync.setOnClickListener(this); ibSync.setOnClickListener(this);
if (btnHelp != null) if (btnHelp != null)
btnHelp.setOnClickListener(this); 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() { private void unwire() {

Loading…
Cancel
Save