mirror of https://github.com/M66B/FairEmail.git
Increased folder star touch area
This commit is contained in:
parent
c52d0ddce9
commit
06e840747a
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue