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:
Cameron Gutman 2021-05-22 14:36:25 -05:00
parent b74e0ce48f
commit f64d50d8c8

View File

@ -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()
.replace(R.id.pcFragmentContainer, new AdapterFragment())
.commitAllowingStateLoss();