Proposed fix for upstream issue #31 (https://github.com/janoliver/pOT-Droid/issues/31).