OSDN Git Service

Start tether service with redeliver intent
authorJason Monk <jmonk@google.com>
Thu, 3 Sep 2015 16:48:25 +0000 (12:48 -0400)
committerJason Monk <jmonk@google.com>
Thu, 3 Sep 2015 16:50:01 +0000 (12:50 -0400)
So that the intent comes back when we are restarted rather than
null causing a crash.

Bug: 23678853
Change-Id: I1697159d5557feb7a87b238f8efa99ed3142fe6a

src/com/android/settings/TetherService.java

index 9111332..b6effad 100644 (file)
@@ -125,7 +125,7 @@ public class TetherService extends Service {
         }
         // We want to be started if we are killed accidently, so that we can be sure we finish
         // the check.
-        return START_STICKY;
+        return START_REDELIVER_INTENT;
     }
 
     @Override