Bug 888641: NPE in BrowserToolbar's setProgressVisibility(). [r=sriram]

--HG--
extra : rebase_source : 02f7b680e58f8b5b52972de403e05c2a227250cd
This commit is contained in:
Michal Kajda 2013-07-02 10:48:02 -07:00
parent 0f101490b8
commit 01b0227d72

View File

@ -218,6 +218,7 @@ public class BrowserToolbar extends GeckoRelativeLayout
mSiteSecurityVisible = (mSiteSecurity.getVisibility() == View.VISIBLE);
mActivity.getSiteIdentityPopup().setAnchor(mSiteSecurity);
mProgressSpinner = (AnimationDrawable) res.getDrawable(R.drawable.progress_spinner);
mStop = (ImageButton) findViewById(R.id.stop);
mReader = (ImageButton) findViewById(R.id.reader);
@ -342,8 +343,6 @@ public class BrowserToolbar extends GeckoRelativeLayout
}
});
mProgressSpinner = (AnimationDrawable) getResources().getDrawable(R.drawable.progress_spinner);
mReader.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {