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