From 47eff36c1c5ea9583e94eda64c701f34f6d38412 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Wed, 16 Jan 2019 21:29:17 +0400 Subject: [PATCH] Made changing title of action bar in SearchableActivity (like "Search: detailName"). --- .../java/ru/volgorobot/vrcatalog/view/SearchableActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/view/SearchableActivity.java b/app/src/main/java/ru/volgorobot/vrcatalog/view/SearchableActivity.java index 141c8fa..612fe25 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/view/SearchableActivity.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/view/SearchableActivity.java @@ -47,6 +47,7 @@ public class SearchableActivity extends AppCompatActivity implements MainContrac Intent intent = getIntent(); if (Intent.ACTION_SEARCH.equals(intent.getAction())) { detailName = intent.getStringExtra(SearchManager.QUERY); + getSupportActionBar().setTitle("Поиск: " + detailName); searchablePresenter.fetchDetailsTreeByName(detailName); } }