ConfigActivity: Log state transitions

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-08-23 23:51:08 -05:00
parent b2357e58e3
commit 632f3f73a2

View File

@ -95,6 +95,9 @@ public class ConfigActivity extends BaseConfigActivity {
* @param shouldBeEditing Whether or not the config should be in the editing state. * @param shouldBeEditing Whether or not the config should be in the editing state.
*/ */
private void moveToState(final Config config, final boolean shouldBeEditing) { private void moveToState(final Config config, final boolean shouldBeEditing) {
Log.d(getClass().getSimpleName(), "moveToState: config=" +
(config != null ? config.getName() : null) + " shouldBeEditing=" + shouldBeEditing);
// Update the saved state. // Update the saved state.
setCurrentConfig(config); setCurrentConfig(config);
setIsEditing(shouldBeEditing); setIsEditing(shouldBeEditing);