Fix up bugs, apply new plugin in gradle

 -Remove unnecessary Runnable interface in ProgressFragment
 -Initialize the variables from the database in ProgressFragment's
 onResume() method.
 -apply non-deprecated plugin in gradle.