Added notification when execution is running.
[artf417724]
This commit is contained in:
parent
2941e5d3cc
commit
1cd7ca6578
3 changed files with 70 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ import com.ericsson.uecontrol.core.UeControlExecutor;
|
|||
import com.ericsson.uecontrol.core.behaviour.UeBehaviourSleep;
|
||||
import com.ericsson.uecontrol.core.behaviour.UeBehaviourSurfing;
|
||||
import com.ericsson.uecontrol.gui.fragments.BehaviourListFragment;
|
||||
import com.ericsson.uecontrol.gui.fragments.ExecNotification;
|
||||
import com.ericsson.uecontrol.gui.fragments.FileBrowserDialog;
|
||||
import com.ericsson.uecontrol.gui.fragments.FileBrowserDialog.OnFileSelectionListener;
|
||||
import com.ericsson.uecontrol.gui.fragments.StatusFragment;
|
||||
|
|
@ -244,6 +245,7 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
if(action_execute != null) {
|
||||
if (currentExecutor.isRunning()) {
|
||||
action_execute.setTitle(R.string.action_stop);
|
||||
ExecNotification.create();
|
||||
if(action_mark != null && csvLogger != null)
|
||||
action_mark.setEnabled(true);
|
||||
if(prefs.getBoolean("screen_on", false))
|
||||
|
|
@ -251,6 +253,7 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
}
|
||||
else {
|
||||
action_execute.setTitle(R.string.action_run);
|
||||
ExecNotification.dismiss();
|
||||
action_mark.setEnabled(false);
|
||||
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue