mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
Bug 888641: NPE in BrowserToolbar's setProgressVisibility(). [r=sriram]
--HG-- extra : rebase_source : 02f7b680e58f8b5b52972de403e05c2a227250cd
This commit is contained in:
parent
0f101490b8
commit
01b0227d72
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user