Ejemplo n.º 1
0
        private static void SetScreenSupport(ApkInfo apkInfo, string[] supportsScreens)
        {
            var screenSupport = new ScreenSupport();

            for (var i = 1; i < supportsScreens.Length; i += 2)
            {
                if (i == 1 && supportsScreens[i] == "small")
                {
                    screenSupport.Small = true;
                }
                if (i == 3 && supportsScreens[i] == "normal")
                {
                    screenSupport.Normal = true;
                }
                if (i == 5 && supportsScreens[i] == "large")
                {
                    screenSupport.Large = true;
                }
                if (i == 7 && supportsScreens[i] == "xlarge")
                {
                    screenSupport.XLarge = true;
                }
            }
            apkInfo.ScreenSupport = screenSupport;
        }