[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:
@ -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);
|
||||
|
@ -221,6 +221,7 @@ public class IITC_WebView extends WebView {
|
||||
loadUrl("javascript: $('#updatestatus').show();");
|
||||
}
|
||||
mIitc.getWindow().setAttributes(attrs);
|
||||
mIitc.invalidateOptionsMenu();
|
||||
}
|
||||
|
||||
void updateFullscreenStatus() {
|
||||
|
Reference in New Issue
Block a user