Merge "Do not stop dream service if dream activity is relaunching" into rvc-dev
This commit is contained in:
@@ -1075,8 +1075,12 @@ public class DreamService extends Service implements Window.Callback {
|
||||
|
||||
@Override
|
||||
public void onViewDetachedFromWindow(View v) {
|
||||
mActivity = null;
|
||||
finish();
|
||||
if (mActivity == null || !mActivity.isChangingConfigurations()) {
|
||||
// Only stop the dream if the view is not detached by relaunching
|
||||
// activity for configuration changes.
|
||||
mActivity = null;
|
||||
finish();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user