commit | 96ab6bddb41e7879072d94dca2a1f69d5428a04b | [log] [tgz] |
---|---|---|
author | Matt Garnes <matt@cyngn.com> | Wed Jun 10 14:51:08 2015 -0700 |
committer | Raleigh Matlock <raleighman2@gmail.com> | Mon Dec 21 16:00:38 2015 -0500 |
tree | d76abeb617e26fb83c54325f55c2ea9679f0ed0f | |
parent | 1b5b43d8e700cb38f4e1aee69d3c3fcf01d8ba79 [diff] |
Keep a local instance of mContactData when copying to SIM card. Copying to SIM card can take a long time while it reads data about available space on the SIM. If the user leaves the activity, mContactData will be set to null and copyToCard will throw an NPE trying to call methods on it. Keep a local instance of this variable that the thread can reference later. Change-Id: Ie5187372b6fb2b23b00e266a175c91b8051e651e