We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a77439 commit 1920b3dCopy full SHA for 1920b3d
app/src/main/java/io/github/krlvm/powertunnel/android/activities/MainActivity.java
@@ -208,8 +208,13 @@ protected void onResume() {
208
}
209
210
if(restartServerOnResume) {
211
- Toast.makeText(this, R.string.toast_configure_while_running_restart, Toast.LENGTH_LONG).show();
212
- doStop();
+ if (!PowerTunnelService.isRunning()) {
+ restartServerOnResume = false;
213
+ unlockConfigurationWhenRunning = false;
214
+ } else {
215
+ Toast.makeText(this, R.string.toast_configure_while_running_restart, Toast.LENGTH_LONG).show();
216
+ doStop();
217
+ }
218
219
220
0 commit comments