mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Fix app permissions focusability on non-TV
This commit is contained in:
parent
3db105a57c
commit
f6c46324f3
@ -103,6 +103,13 @@ public class AppOverview extends Fragment implements MenuProvider {
|
||||
mBlockedConnsRow = view.findViewById(R.id.conns_blocked_row);
|
||||
mPermissions = view.findViewById(R.id.permissions);
|
||||
|
||||
if(Utils.isTv(ctx)) {
|
||||
// necessary to make scroll work on TV
|
||||
// but disables ability to select and copy permissions textview
|
||||
ViewGroup layout = view.findViewById(R.id.layout);
|
||||
layout.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
|
||||
}
|
||||
|
||||
((TextView)view.findViewById(R.id.uid)).setText(Utils.formatInteger(ctx, dsc.getUid()));
|
||||
((TextView)view.findViewById(R.id.name)).setText(dsc.getName());
|
||||
((ImageView)view.findViewById(R.id.app_icon)).setImageDrawable(dsc.getIcon());
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
android:padding="8dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:descendantFocusability="blocksDescendants"
|
||||
android:id="@+id/layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user