[iitcm] tweaks to fullscreen menu item

Use other icon for returning from fullscreen if shown as action. If shown in the action overflow, provide a chechbox to show current state.
This commit is contained in:
fkloft
2015-01-05 19:08:31 +01:00
parent fae1482498
commit 79569d36b0
8 changed files with 10 additions and 1 deletions

View File

@@ -535,6 +535,13 @@ public class IITC_Mobile extends Activity
item.setVisible(true);
break;
case R.id.toggle_fullscreen:
item.setChecked(mIitcWebView.isInFullscreen());
item.setIcon(mIitcWebView.isInFullscreen()
? R.drawable.ic_action_return_from_full_screen
: R.drawable.ic_action_full_screen);
break;
case R.id.locate:
item.setVisible(enabled && visible);
item.setEnabled(!mIsLoading);