Merge "Don't finish resolver activity onStop if it is for home intent" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b2303ddd05
@@ -76,6 +76,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
|
||||
import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR;
|
||||
import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
|
||||
|
||||
@@ -507,7 +508,9 @@ public class ResolverActivity extends Activity {
|
||||
mPackageMonitor.unregister();
|
||||
mRegistered = false;
|
||||
}
|
||||
if ((getIntent().getFlags()&Intent.FLAG_ACTIVITY_NEW_TASK) != 0 && !isVoiceInteraction()) {
|
||||
final Intent intent = getIntent();
|
||||
if ((intent.getFlags() & FLAG_ACTIVITY_NEW_TASK) != 0 && !isVoiceInteraction()
|
||||
&& !mResolvingHome) {
|
||||
// This resolver is in the unusual situation where it has been
|
||||
// launched at the top of a new task. We don't let it be added
|
||||
// to the recent tasks shown to the user, and we need to make sure
|
||||
|
||||
Reference in New Issue
Block a user