It should be noted this has almost nothing to do with Apple, but rather is the result of better competition among Android manufacturers splitting that market into smaller chunks. Android as a whole is still the #1 smartphone type in the world easily beating iOS. Previously Samsung was the #1 phone manufacturer, but stiff competition from other Android phone manufacturers helped drive their share of the market down low enough that Apple was able to take the #1 spot despite not increasing their market share.