Bug 784387 - Long press on reader button to add to reading list (r=lucasr)

This commit is contained in:
Aditya Bhardwaj 2013-04-17 11:43:30 +01:00
parent 3ff786a993
commit 503f5b7d0f

View File

@ -321,6 +321,18 @@ public class BrowserToolbar implements ViewSwitcher.ViewFactory,
}
});
mReader.setOnLongClickListener(new Button.OnLongClickListener() {
public boolean onLongClick(View v) {
Tab tab = Tabs.getInstance().getSelectedTab();
if (tab != null) {
tab.addToReadingList();
return true;
}
return false;
}
});
mShadow = (ImageView) mLayout.findViewById(R.id.shadow);
mHandler = new Handler();