|
1 | 1 | /*
|
2 | 2 | * Copyright 2011 Ytai Ben-Tsvi. All rights reserved.
|
3 |
| - * |
4 |
| - * |
| 3 | + * |
| 4 | + * |
5 | 5 | * Redistribution and use in source and binary forms, with or without modification, are
|
6 | 6 | * permitted provided that the following conditions are met:
|
7 |
| - * |
| 7 | + * |
8 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this list of
|
9 | 9 | * conditions and the following disclaimer.
|
10 |
| - * |
| 10 | + * |
11 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
12 | 12 | * of conditions and the following disclaimer in the documentation and/or other materials
|
13 | 13 | * provided with the distribution.
|
14 |
| - * |
| 14 | + * |
15 | 15 | * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
16 | 16 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
17 | 17 | * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ARSHAN POURSOHI OR
|
|
21 | 21 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
22 | 22 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
23 | 23 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
24 |
| - * |
| 24 | + * |
25 | 25 | * The views and conclusions contained in the software and documentation are those of the
|
26 | 26 | * authors and should not be interpreted as representing official policies, either expressed
|
27 | 27 | * or implied.
|
|
36 | 36 |
|
37 | 37 | /**
|
38 | 38 | * A convenience class for easy creation of IOIO-based services.
|
39 |
| - * |
| 39 | + * |
40 | 40 | * It is used by creating a concrete {@link Service} in your application, which
|
41 | 41 | * extends this class. This class then takes care of proper creation and
|
42 | 42 | * abortion of the IOIO connection and of a dedicated thread for IOIO
|
@@ -99,9 +99,7 @@ private void start(Intent intent) {
|
99 | 99 | helper_.start();
|
100 | 100 | started_ = true;
|
101 | 101 | } else {
|
102 |
| - if ((intent.getFlags() & Intent.FLAG_ACTIVITY_NEW_TASK) != 0) { |
103 |
| - helper_.restart(); |
104 |
| - } |
| 102 | + helper_.restart(); |
105 | 103 | }
|
106 | 104 | }
|
107 | 105 |
|
@@ -147,7 +145,7 @@ protected void stop() {
|
147 | 145 | * IOIO. In multi-IOIO scenarios, where you want to identify which IOIO the
|
148 | 146 | * thread is for, consider overriding
|
149 | 147 | * {@link #createIOIOLooper(String, Object)} instead.
|
150 |
| - * |
| 148 | + * |
151 | 149 | * @return An implementation of {@link IOIOLooper}, or <code>null</code> to
|
152 | 150 | * skip.
|
153 | 151 | */
|
|
0 commit comments