I moved the report filing work, to it's own thread
closes #96 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
1 parent
9b7c2594c9
commit
824f58879c
1 file changed
+5
@@ -191,6 +191,9 @@ public class ReportPostingService extends Service {
|
||||
*/
|
||||
private void postReport(){
|
||||
if(!isStarted){
|
||||
new Thread(new Runnable(){
|
||||
@Override
|
||||
public void run(){
|
||||
isStarted = true;
|
||||
try {
|
||||
Log.d(TAG, mReport.file());
|
||||
@@ -204,5 +207,7 @@ public class ReportPostingService extends Service {
|
||||
ReportPostingService.this.stopSelf(mStartId);
|
||||
}
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user