mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-26 05:50:23 +00:00
Hide the help button on Fire TV
The last reviewer complained that the GitHub wiki was not entirely navigable via the Fire TV remote.
This commit is contained in:
1 parent
b74e0ce48f
commit
f64d50d8c8
1 file changed
+7
@@ -155,6 +155,13 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Amazon review didn't like the help button because the wiki was not entirely
|
||||||
|
// navigable via the Fire TV remote (though the relevant parts were). Let's hide
|
||||||
|
// it on Fire TV.
|
||||||
|
if (getPackageManager().hasSystemFeature("amazon.hardware.fire_tv")) {
|
||||||
|
helpButton.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
getFragmentManager().beginTransaction()
|
getFragmentManager().beginTransaction()
|
||||||
.replace(R.id.pcFragmentContainer, new AdapterFragment())
|
.replace(R.id.pcFragmentContainer, new AdapterFragment())
|
||||||
.commitAllowingStateLoss();
|
.commitAllowingStateLoss();
|
||||||
|
|||||||
Reference in new issue
Block a user