Skip to content

Commit

Permalink
Disable button when get from net
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinea committed Mar 4, 2014
1 parent c3bf390 commit bc28fc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cn/trinea/android/demo/HttpCacheDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void onClick(View v) {
protected void onPreGet() {
httpCacheInfoTV.setText("");
httpGetContentTV.setText("wating…");
httpGetBT.setEnabled(false);
}

protected void onPostGet(HttpResponse httpResponse, boolean isInCache) {
Expand All @@ -71,6 +72,7 @@ protected void onPostGet(HttpResponse httpResponse, boolean isInCache) {
httpCacheInfoTV.setText("");
httpGetContentTV.setText("response is null.");
}
httpGetBT.setEnabled(true);
}
});
}
Expand Down

0 comments on commit bc28fc4

Please sign in to comment.