if (isCancelled())//Выполняется return false; //Не выполняется. Вверху false publishProgress(values); //Не выполняется (почему?) return true; //Выполняется Just jumps over the function. It also set the breakpoints, silence
boolean b = isCancelled(); if (b) return false; publishProgress(values); return true; Remade so here it is generally interesting. b initialized to true and the condition jumps to return true
Deleted the application from the phone. In the studio I did a build clean build rebuild`. Same
b инициализируется как truedid you see that in the debugger? - iksuytrueand mustreturn false- HerrgottisCancelled(),valueswhat is there? What isonProgressUpdate? - VAndrJif(true)you have a variable there that gets the value fromisCancelled. There is clearly something wrong. - iksuy