Search in sources :

Example 1 with AndroidVersionsInfo

use of com.android.tools.idea.npw.platform.AndroidVersionsInfo in project android by JetBrains.

the class ConfigureAndroidModuleStep method onEntering.

@Override
protected void onEntering() {
    // TODO: 1 - In the old version, the combo box was initially populated with local data, and then later (asynchronously) with remote data
    // now, the init is only called when all data is loaded, so the combo box stays empty for longer
    // 2 - The old version only loaded the list of version once, and kept everything on a static field
    // Possible solutions: Move AndroidVersionsInfo/load to the to the class that instantiates this step?
    // Add a new method to androidVersionsInfo.ItemsLoaded interface: onDataLoadedStarted(List<VersionItem> items) that provides the already
    // loaded Local Store items?
    AndroidVersionsInfo androidVersionsInfo = new AndroidVersionsInfo();
    androidVersionsInfo.load();
    androidVersionsInfo.loadTargetVersions(myFormFactor, myMinSdkLevel, items -> mySdkControls.init(myFormFactor, items));
}
Also used : AndroidVersionsInfo(com.android.tools.idea.npw.platform.AndroidVersionsInfo)

Aggregations

AndroidVersionsInfo (com.android.tools.idea.npw.platform.AndroidVersionsInfo)1