|
|
@ -40,6 +40,7 @@ class FeedReader extends Thread { |
|
|
|
this.result = getRss(link); |
|
|
|
this.threadState = States.THREAD_COMPLETE; |
|
|
|
callback.onSuccess(result); |
|
|
|
feedController.logIt("onSuccess called"); |
|
|
|
} catch (Exception e) { |
|
|
|
this.threadState = States.THREAD_FAIL; |
|
|
|
e.printStackTrace(); |
|
|
@ -69,9 +70,9 @@ class FeedReader extends Thread { |
|
|
|
return this.threadState; |
|
|
|
} |
|
|
|
|
|
|
|
public String getResult() { |
|
|
|
return this.result; |
|
|
|
} |
|
|
|
// public String getResult() {
|
|
|
|
// return this.result;
|
|
|
|
// }
|
|
|
|
|
|
|
|
interface ReaderCallback{ |
|
|
|
void onSuccess(String rssFeed); |
|
|
|