OSDN Git Service

Relaunch previous activity after turning work profile on
authorRubin Xu <rubinxu@google.com>
Wed, 6 Apr 2016 18:04:30 +0000 (19:04 +0100)
committerRubin Xu <rubinxu@google.com>
Thu, 7 Apr 2016 17:18:07 +0000 (18:18 +0100)
commite420c550ee98aefab92bae4017c46c7a969bf132
treec1af9d85c01aba71791af7245bb16047c6401dda
parent8da25ef74afaa63e1ba2814f219c0d0bac2abf7e
Relaunch previous activity after turning work profile on

When work profile is turned off, attempts to start work app activity is
intercepted and redirected to an information dialog, which gives the
option to turn work profile back on. When the user does turn it back on,
the original activity should be relaunched.

Bug: 27740167
Change-Id: I4c9d5bc949499bdb5d9f2394e13e670a48d43629
core/java/com/android/internal/app/UnlaunchableAppActivity.java
services/core/java/com/android/server/am/ActivityStartInterceptor.java