aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorLibravatar Renard 2016-04-14 17:18:33 -0300
committerLibravatar Renard 2016-04-14 17:18:33 -0300
commit660334be620649dbf2aaf7360dd8d9eff91bb6d9 (patch)
treeab48923ad195eec9f9d783a9537cdf31b277067f /app/src/main/java
parent00cfbfc1cd3bec581fb81722826407d07ad7d83c (diff)
downloadBaiApp-660334be620649dbf2aaf7360dd8d9eff91bb6d9.tar.gz
BaiApp-660334be620649dbf2aaf7360dd8d9eff91bb6d9.tar.xz
BaiApp-660334be620649dbf2aaf7360dd8d9eff91bb6d9.zip
Fix - Citas
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/layout/FragmentBoardItemList.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/src/main/java/layout/FragmentBoardItemList.java b/app/src/main/java/layout/FragmentBoardItemList.java
index 5bac6e9..6589f5a 100644
--- a/app/src/main/java/layout/FragmentBoardItemList.java
+++ b/app/src/main/java/layout/FragmentBoardItemList.java
@@ -205,13 +205,11 @@ public class FragmentBoardItemList extends Fragment {
}
}
}
-// System.out.println("[Scroll] firstItem: " + firstVisibleItem + " visible: " + visibleItemCount + " total: " + totalItemCount);
if (totalItemCount == firstVisibleItem + visibleItemCount && !loadingMoreThreads && imMainFragment && totalItemCount != 0 && !recentPostMode) {
loadingMoreThreads = true;
currentOffset += 10;
System.out.println("[Scroll] loading more threads! currentThreadCount " + totalItemCount);
getThreadList(currentOffset); // TODO: Offset incorrecto
-// new TaskParseJSON(currentBoard, true).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}
});
@@ -261,7 +259,6 @@ public class FragmentBoardItemList extends Fragment {
System.out.println("[MainFragment] isCurrentThread null? (it should be!) " + (currentThread == null));
}
showProgressBar();
-// new TaskParseJSON(board).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
getThreadList(0);
}else{
System.out.println("[MainFragment] Trying to update from a null board object");
@@ -270,7 +267,6 @@ public class FragmentBoardItemList extends Fragment {
if (currentBoard != null && currentThread != null){
System.out.println("atUpdateBoardItems ChildFragment threadID: " + currentThread.getId() + " parentID: " + currentThread.getParentId() + " boardName: " + board.getBoardName() + " " + board.getBoardDir());
showProgressBar();
-// new TaskParseJSON(currentBoard, currentThread).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
getThreadReplies();
}else{
System.out.println("[childFragment] trying to update from null objects");
@@ -280,8 +276,6 @@ public class FragmentBoardItemList extends Fragment {
}
}
-
-
@Override
public void onAttach(Context context) {
super.onAttach(context);
@@ -371,24 +365,18 @@ public class FragmentBoardItemList extends Fragment {
public void setCatalogMode() {
if (recentPostMode){
boardItems.clear();
-// listViewAdapter = new ThreadListAdapter(themedContext.getContext(), boardItems, ((MainActivity)getActivity()).themeManager);
listViewBoardItems.setAdapter(listViewAdapter);
this.recentPostMode = false;
}
}
public void loadRecentPost(){
- // Cambiamos el flag
setRecentPostMode();
mListener.updateToolbar("Post recientes");
- // Borramos el listview
boardItems.clear();
listViewAdapter.clear();
listViewAdapter.notifyDataSetChanged();
- // Cargamos un nuevo adaptador.
-// recentPostAdapter = new RecentPostAdapter(themedContext.getContext(), boardItems);
listViewBoardItems.setAdapter(recentPostAdapter);
- // Cargamos la nueva lista
getRecentPosts();
}
@@ -433,7 +421,6 @@ public class FragmentBoardItemList extends Fragment {
Ion.with(getContext())
.load("http://bienvenidoainternet.org/cgi/api/list?dir=" + currentBoard.getBoardDir() + "&replies=" + repliesForCatalog + strOffset)
.setLogging("getThreadList", Log.INFO)
-// .progressBar(barThreadProcess)
.noCache()
.asString()
.setCallback(new FutureCallback<String>() {
@@ -634,7 +621,6 @@ public class FragmentBoardItemList extends Fragment {
Ion.with(getContext())
.load("http://bienvenidoainternet.org/cgi/api/last?limit=" + limit)
.setLogging("getRecentPosts", Log.INFO)
-// .progressBar(barThreadProcess)
.noCache()
.asString()
.setCallback(new FutureCallback<String>() {
@@ -784,7 +770,6 @@ public class FragmentBoardItemList extends Fragment {
}
private void setUpThreadProgess(){
-// barThreadProcess.setVisibility(View.VISIBLE);
txtThreadProcess.setVisibility(View.GONE);
layoutThreadProcess.setVisibility(View.VISIBLE);
}