"Sure about that ?"
Too damn true - when the good people of Indonesia riot for whatever reason it only takes a short while before they round on the ethnic Chinese - loot and burn their property and regretfully lynch a few
And the old CP of Indonesia was largely ethnic Chinese and we all know what happened to them - maybe half a million gone in '65-68.
As for the submarine they also accepted help from the USA, Thailand and Singapore IIRC, Politically they still are "non-aligned" but they buy most of their Navy from the west - the airforce is a mix of USA and Russian kit
And of course they are the largest Muslim country in the world