A hinge assembly includes first and second linkage rods pivoted to a base seat, a cam connected to the first and second linkage rods, and a kickstand support pivoted to the cam. A latch is disposed in the cam. When the first and second linkage rods, the kickstand support, and the cam are received inside the base seat, the latch is in a first locking position, where the latch locks rotational movement of the kickstand support relative to the cam. When the second linkage rod moves outward of the base seat and brings the first linkage rod to rotate relative to the cam, the latch is pushed by the kickstand support to move into a second locking position, where the first linkage rod is limited from rotating relative to the cam.