Fixed build fail due to final class SearchJavaTast. Changed permissions change logic so the permissions will be applied only in "Apply" button press.