diff options
Diffstat (limited to 'InCallUI/src/com/android/incallui/Presenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/Presenter.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/Presenter.java b/InCallUI/src/com/android/incallui/Presenter.java index d4024d53f..b4962aea6 100644 --- a/InCallUI/src/com/android/incallui/Presenter.java +++ b/InCallUI/src/com/android/incallui/Presenter.java @@ -32,6 +32,13 @@ public abstract class Presenter<U extends Ui> { mUi = ui; } + /** + * Called when the UI view is destroyed in Fragment.onDestroyView(). + */ + public void onUiUnready(U ui) { + mUi = null; + } + public U getUi() { return mUi; } |