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:
@@ -41,6 +41,8 @@ abstract class BaseConfigFragment extends Fragment {
|
||||
}
|
||||
|
||||
public void setCurrentConfig(final Config config) {
|
||||
if (currentConfig == config)
|
||||
return;
|
||||
currentConfig = config;
|
||||
onCurrentConfigChanged(currentConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user