AndroidSettingsWidget::apply(): Fix order of applying the changes

Create the device first, as otherwise no kits are generated and
create toolchains next. This should fix that the AndroidPotentialKit
 doesn't vanish in some cases.

Change-Id: Ia9141f72a146da157dc713c1e2f293747fa369bd
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
Squish: Fix tst_rename_file

Change-Id: I71eece2ce9d73132edc09c5ba1465882636f5c78
Reviewed-by: Robert Loehning <robert.loehning@digia.com>