Made changing title of action bar in SearchableActivity (like "Search: detailName").
This commit is contained in:
parent
4b4be1f1d1
commit
47eff36c1c
@ -47,6 +47,7 @@ public class SearchableActivity extends AppCompatActivity implements MainContrac
|
|||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
||||||
detailName = intent.getStringExtra(SearchManager.QUERY);
|
detailName = intent.getStringExtra(SearchManager.QUERY);
|
||||||
|
getSupportActionBar().setTitle("Поиск: " + detailName);
|
||||||
searchablePresenter.fetchDetailsTreeByName(detailName);
|
searchablePresenter.fetchDetailsTreeByName(detailName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user