public static void runOnUiThread(final boolean forcePost, final Runnable action) {
        if (action == null) {
            return;
        }
        if (!forcePost && currentThreadIsUiThread()) {
            action.run();
        } else {
            AndroidRxUtils.runOnUi(action);
        }
    }
Tries its best to return the size of a view. Returns null otherwise.
Sometimes it is only possible to return width OR height. In this case the other parameter is set to 0.

@return Pair where first is width in pixel and second is height in pixel
main/src/main/java/cgeo/geocaching/ui/ViewUtils.java