diff options
author | Jimmy Garrido <jimmygarrido@outlook.com> | 2016-10-17 10:57:04 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-10-17 18:57:04 +0100 |
commit | aa969f3fc2901eb93b6da03471dbef86188e47cc (patch) | |
tree | 458f54764b3a6d348dd4ec736f1967dc4af993ab /Xamarin.Forms.Platform.Android | |
parent | 92d462718ad3066b0ea449f465cabc415c2ccfe4 (diff) | |
download | xamarin-forms-aa969f3fc2901eb93b6da03471dbef86188e47cc.tar.gz xamarin-forms-aa969f3fc2901eb93b6da03471dbef86188e47cc.tar.bz2 xamarin-forms-aa969f3fc2901eb93b6da03471dbef86188e47cc.zip |
[Android] Fix NRE When Scrolling ListView and Item With Context Actions Is Selected (#310)
* Fix NRE When Item With Context Actions Selected
* Add UITest
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs index a38aea0a..51c603c4 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs @@ -210,13 +210,6 @@ namespace Xamarin.Forms.Platform.Android } cell = (Cell)boxedCell.Element; - if (ActionModeContext == cell) - { - // This appears to never happen, the theory is android keeps all views alive that are currently selected for long-press (preventing them from being recycled). - // This is convenient since we wont have to worry about the user scrolling the cell offscreen and us losing our context actions. - ActionModeContext = null; - ContextView = null; - } // We are going to re-set the Platform here because in some cases (headers mostly) its possible this is unset and // when the binding context gets updated the measure passes will all fail. By applying this here the Update call // further down will result in correct layouts. |