ConfigActivity: Show the current config in the title
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
cfcda8bd13
commit
2103a28f8f
@ -73,6 +73,10 @@ public class ConfigActivity extends BaseConfigActivity {
|
|||||||
// listFragment is guaranteed not to be null at this point by onServiceAvailable().
|
// listFragment is guaranteed not to be null at this point by onServiceAvailable().
|
||||||
if (listFragment.getCurrentConfig() != config)
|
if (listFragment.getCurrentConfig() != config)
|
||||||
listFragment.setCurrentConfig(config);
|
listFragment.setCurrentConfig(config);
|
||||||
|
// Update the activity's title if the list of configurations is not visible.
|
||||||
|
if (!isSplitLayout)
|
||||||
|
setTitle(config != null ? config.getName() : getString(R.string.app_name));
|
||||||
|
// Update the fragment in the main container.
|
||||||
if (isEditing) {
|
if (isEditing) {
|
||||||
fm.popBackStackImmediate();
|
fm.popBackStackImmediate();
|
||||||
isEditing = false;
|
isEditing = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user