mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 859994 - Remove the Marketplace promo from Fennec r=wesj
This commit is contained in:
parent
498c958a33
commit
25edfaad7a
@ -111,30 +111,6 @@ public class PromoBox extends TextView implements View.OnClickListener {
|
||||
mTypes.add(new SyncType(R.string.abouthome_about_sync,
|
||||
R.string.abouthome_sync_bold_name,
|
||||
R.drawable.abouthome_promo_logo_sync));
|
||||
|
||||
mTypes.add(new Type(R.string.abouthome_about_apps,
|
||||
R.string.abouthome_apps_bold_name,
|
||||
R.drawable.abouthome_promo_logo_apps) {
|
||||
@Override
|
||||
public boolean canShow() {
|
||||
final ContentResolver resolver = mContext.getContentResolver();
|
||||
return !BrowserDB.isVisited(resolver, "https://marketplace.firefox.com/");
|
||||
}
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Tabs.getInstance().loadUrl("https://marketplace.firefox.com/", Tabs.LOADURL_NEW_TAB);
|
||||
|
||||
// this isn't as good as being notified whenever this url is added to the database,
|
||||
// if the user visits the marketplace through some other means, we'll have to wait
|
||||
// until we are refreshed or restarted to get the correct value
|
||||
v.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
showRandomPromo();
|
||||
}
|
||||
}, 5000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user