Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfbab57f authored by Mark Harman's avatar Mark Harman
Browse files

Don't restart when loading settings in test code.

parent ee3fb913
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -129,7 +129,10 @@ public class SettingsManager {
			}

			editor.apply();
			if( !main_activity.is_test ) {
				// restarting seems to cause problems for test code (e.g., see testSettingsSaveLoad - even if that test is fine, it risks affecting subsequent tests)
				main_activity.restartOpenCamera();
			}
			return true;
		}
        catch(Exception e) {