Padraig Harrington ended a four-year winning drought with a two-shot win over Thailand's Thanyakon Khrongpha at the Indonesia Open.