Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static int sDevicesScreenWidth;
    private static int sDevicesScreenHeight;

    private static int getFullscreenWidth() {
        assureScreenDimen();
        // return Math.max(sDevicesScreenWidth, parent.getWidth());
        return sDevicesScreenWidth;
    }

    private static void assureScreenDimen() {
        if (sDevicesScreenHeight == 0 || sDevicesScreenWidth == 0) {
            throw new IllegalStateException("you must init sDevicesScreenHeight and/or sDevicesScreenWidth.");
        }
    }
}