mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784387 - Long press on reader button to add to reading list (r=lucasr)
This commit is contained in:
parent
3ff786a993
commit
503f5b7d0f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user