Add option to lock orientation state

This new option will control if the screen orientation
lock option is displayed or not. If set, the orientation lock
is forced and the unlock option is hidden.
This commit is contained in:
Branden Archer committed 2018-10-06 15:27:36 -07:00
1 parent 4de952ba2d
commit 10e720de91
5 files changed
+56

No files matched your search

@@ -200,6 +200,12 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
{
getMenuInflater().inflate(R.menu.card_view_menu, menu);
if(settings.getLockBarcodeScreenOrientation())
{
MenuItem item = menu.findItem(R.id.action_lock_unlock);
setOrientatonLock(item, true);
item.setVisible(false);
}
return super.onCreateOptionsMenu(menu);
}