Adapted to Android 5.0 Lollipop.