Made changing title of action bar in SearchableActivity (like "Search: detailName").

This commit is contained in:
ChronosX88 2019-01-16 21:29:17 +04:00
parent 4b4be1f1d1
commit 47eff36c1c
No known key found for this signature in database
GPG Key ID: 8F92E090A87804AA

View File

@ -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);
}
}