Fix Chromoting Android client crashed on launch
We crash because mRefreshButton is null when updateUI() is called. mRefreshButton is initialized on onCreateOptionsMenu() According to http://stackoverflow.com/questions/13267030/oncreateoptionsmenu-is-never-called, seems like onCreateOptionMenu will never got called on some themes on phones with menu button. I can repro by overriding the theme to @android:style/Theme.Black.NoTitleBar The fix is adding a null check. BUG=364591 Review URL: https://codereview.chromium.org/308793007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274354 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment