Source:
<code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_brand); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); progressBar = (ProgressBar) findViewById(R.id.progress_bar); countProductsView.setVisibility(View.INVISIBLE); Bundle extras = getIntent().getExtras(); typeStrings = new String[]{ "brand", "country", "additive", "search", "store", "packaging", "label" <START> }; <END> searchType = extras.getString("search_type"); key = extras.getString("key"); getSupportActionBar().setTitle(key); switch (searchType) { case "brand": { getSupportActionBar().setSubtitle(R.string.brand_string); break; } case "country": { getSupportActionBar().setSubtitle(R.string.country_string); break; } case "additive": { getSupportActionBar().setSubtitle(R.string.additive_string); break; } case "search": { getSupportActionBar().setSubtitle(R.string.search_string); break; } case "store": { getSupportActionBar().setSubtitle(getString(R.string.store_string)); break; } case "packaging": { getSupportActionBar().setSubtitle(getString(R.string.packaging_string)); break; } case "label": { getSupportActionBar().setSubtitle(getString(R.string.label_string)); } } apiClient = new OpenFoodAPIClient(ProductBrowsingListActivity.this, BuildConfig.OFWEBSITE); api = new OpenFoodAPIClient(ProductBrowsingListActivity.this); productsRecyclerView = (RecyclerView) findViewById(R.id.products_recycler_view); setup(); }</code><technical_language>Hey @PrajwalM2212 add categories in this PR solve similar issues in PR</technical_language>

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_brand); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); progressBar = (ProgressBar) findViewById(R.id.progress_bar); countProductsView.setVisibility(View.INVISIBLE); Bundle extras = getIntent().getExtras(); typeStrings = new String[]{ "brand", "country", "additive", "search", "store", "packaging", "label" , "category" }; searchType = extras.getString("search_type"); key = extras.getString("key"); getSupportActionBar().setTitle(key); switch (searchType) { case "brand": { getSupportActionBar().setSubtitle(R.string.brand_string); break; } case "country": { getSupportActionBar().setSubtitle(R.string.country_string); break; } case "additive": { getSupportActionBar().setSubtitle(R.string.additive_string); break; } case "search": { getSupportActionBar().setSubtitle(R.string.search_string); break; } case "store": { getSupportActionBar().setSubtitle(getString(R.string.store_string)); break; } case "packaging": { getSupportActionBar().setSubtitle(getString(R.string.packaging_string)); break; } case "label": { getSupportActionBar().setSubtitle(getString(R.string.label_string)); break; } case "category": { getSupportActionBar().setSubtitle(getString(R.string.category_string)); break; } } apiClient = new OpenFoodAPIClient(ProductBrowsingListActivity.this, BuildConfig.OFWEBSITE); api = new OpenFoodAPIClient(ProductBrowsingListActivity.this); productsRecyclerView = (RecyclerView) findViewById(R.id.products_recycler_view); setup(); }