Fix crash on Android 2.3 caused by missing method

Bug: 49716

Change-Id: I34d34fbefc98a943d55dc6beb6c116f0f7f5e29c
GitHub: https://github.com/wikimedia/apps-android-commons/pull/16
Merge "Fix crash on Android 2.3 caused by missing method"