I doubt they teach American flag etiquette in Indonesian schools.
Barry Soetoro definitely did not pledge allegiance to the flag in Indonesia. He studied the Quran.