Only show Presentations on suitable displays

Bug: 141745510
Test: Manually verifed, App > Activity > Presentation
Change-Id: I0ca4c18bab97f46971ae3eae29e34e74ed6a5810
This commit is contained in:
Linus Tufvesson
2020-07-20 11:43:49 +01:00
parent e27e2c5448
commit 084c24eff0

View File

@@ -395,6 +395,7 @@ public class PresentationActivity extends Activity
cb.setTag(display);
cb.setOnCheckedChangeListener(PresentationActivity.this);
cb.setChecked(contents != null);
cb.setEnabled((display.getFlags() & Display.FLAG_PRESENTATION) != 0);
TextView tv = (TextView)v.findViewById(R.id.display_id);
tv.setText(v.getContext().getResources().getString(