fixed a bug with button callbacks on Samsung devices