mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-10-23 06:24:38 -04:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user