zixpo / candybar

Dashboard for Android Icon Packs. Supported by the community.
Apache License 2.0
288 stars 53 forks source link

ALL icons option #177

Closed atanusanyal closed 5 months ago

atanusanyal commented 7 months ago

How to Disable "All icon" option from dashboard?

sarsamurmu commented 7 months ago

https://github.com/zixpo/candybar-sample/wiki/Advanced-dashboard-configurations#:~:text=setShowTabAllIcons(boolean)

dalight13 commented 6 months ago

That option doesn't seem to work on my side, anything I could be doing wrong? Thanks I'm on 3.19.0

atanusanyal commented 6 months ago

That option doesn't seem to work on my side, anything I could be doing wrong? Thanks I'm on 3.19.0

Just go to this and "false" it

configuration.setShowTabAllIcons(true)

public class CandyBar extends CandyBarApplication {

@NonNull
@Override
public Configuration onInit() {
    Configuration configuration = new Configuration();

    configuration.setGenerateAppFilter(true);
    configuration.setGenerateAppMap(true);
    configuration.setGenerateThemeResources(true);

    configuration.setNavigationIcon(NavigationIcon.STYLE_4);
    configuration.setNavigationViewHeaderStyle(NavigationViewHeader.NONE);

    configuration.setHomeGridStyle(GridStyle.FLAT);
    configuration.setApplyGridStyle(GridStyle.FLAT);
    configuration.setWallpapersGridStyle(GridStyle.FLAT);
    configuration.setRequestStyle(Style.PORTRAIT_FLAT_LANDSCAPE_FLAT);
    configuration.setAboutStyle(Style.PORTRAIT_FLAT_LANDSCAPE_FLAT);

    configuration.setShowTabAllIcons(true);
    configuration.setCategoryForTabAllIcons(new String[] {
            "Games", "Apps"
    });

    return configuration;
}
dalight13 commented 6 months ago

Yeah that's what I did on my side, look at my code + emulator execution of that code. I also get the same result on my phone. I also tried doing like you and limiting the categories we can see but that doesn't work either. Any idea? Thanks!

Edit : I just tried to start a new blank project by downloading the sample and following the wiki. Adding that property to CandyBar.java onInit() didn't seem to change anything

image

dalight13 commented 6 months ago

I ended up downloading the whole library and realized this option didn't do what I thought it was. Sorry about my messages it works properly in the sample app. Thanks for your replies