ConfigActivity: Fix fragment state when leaving/entering app

Do this by making the fragment transition functions idempotent.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland
2017-08-21 21:25:31 -05:00
parent 9026317b0e
commit 90cd59c866
4 changed files with 162 additions and 109 deletions
@@ -41,6 +41,8 @@ abstract class BaseConfigFragment extends Fragment {
}
public void setCurrentConfig(final Config config) {
if (currentConfig == config)
return;
currentConfig = config;
onCurrentConfigChanged(currentConfig);
}