The British captured Yangon during the First Anglo-Burmese War ( 1824 â `` 26 ) but returned it to Burma after the war . The British captured Yangon during the First Anglo-Burmese War ( 1824 â `` 26 ) but returned it to Burmese administration after the war .