Renaming internal code from Chan to Clover

captchafix
Florens Douwes 11 years ago
parent 396d9d6369
commit 1793bbde86
  1. 8
      Clover/res/values/strings.xml
  2. 2
      Clover/src/org/floens/chan/core/ChanPreferences.java
  3. 2
      Clover/src/org/floens/chan/core/manager/ReplyManager.java
  4. 4
      Clover/src/org/floens/chan/core/net/JsonReaderRequest.java
  5. 2
      Clover/src/org/floens/chan/utils/Logger.java
  6. 2
      docs/FileNotice.txt
  7. 33
      docs/Loading.txt
  8. 0
      docs/images/cloverlogo.ai
  9. BIN
      docs/images/old/4chanlogo.png

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Chan</string>
<string name="app_name">Clover</string>
<string name="cancel">Cancel</string>
<string name="change">Change</string>
@ -23,7 +23,7 @@
<string name="action_download_album">Download album</string>
<string name="open_unknown_title">Unsupported link</string>
<string name="open_unknown">Chan can\'t open this link. Opening it in your browser instead.</string>
<string name="open_unknown">Clover can\'t open this link. Opening it in your browser instead.</string>
<string name="open_link_failed">No applications found to open link</string>
<string name="image_save">Save image</string>
@ -118,8 +118,8 @@
<string name="watch_info_text">To watch pins for new posts, turn the thread watcher on.</string>
<string name="watch_enable_background">Enable in the background</string>
<string name="watch_enable_background_on">Watching pins when Chan is in the background</string>
<string name="watch_enable_background_off">Not watching when Chan is in the background</string>
<string name="watch_enable_background_on">Watching pins when Clover is in the background</string>
<string name="watch_enable_background_off">Not watching when Clover is in the background</string>
<string name="watch_background_timeout_description">Time between reloads in background</string>
<string-array name="watch_background_timeouts">
<item>1 minute</item>

@ -42,7 +42,7 @@ public class ChanPreferences {
}
public static String getImageSaveDirectory() {
return "Chan";
return "Clover";
}
public static boolean getWatchEnabled() {

@ -465,7 +465,7 @@ public class ReplyManager {
/**
* Raw html from the response. Used to set html in an WebView to the
* client, when the error was not recognized by Chan.
* client, when the error was not recognized by Clover.
*/
public String responseData = "";
}

@ -59,8 +59,6 @@ public abstract class JsonReaderRequest<T> extends Request<T> {
JsonReader reader = new JsonReader(new InputStreamReader(baos, "UTF-8"));
// long start = System.currentTimeMillis();
T read = readJson(reader);
try {
@ -69,8 +67,6 @@ public abstract class JsonReaderRequest<T> extends Request<T> {
e.printStackTrace();
}
// Log.e("Chan", "Total time: " + (System.currentTimeMillis() - start));
if (read == null) {
return Response.error(new VolleyError());
} else if (error != null) {

@ -22,7 +22,7 @@ import org.floens.chan.ChanApplication;
import android.util.Log;
public class Logger {
private static final String TAG = "Chan";
private static final String TAG = "Clover";
private static final String TAG_SPACER = " | ";
public static void v(String tag, String message) {

@ -1,5 +1,5 @@
/*
* Chan - 4chan browser https://github.com/Floens/Chan/
* Clover - 4chan browser https://github.com/Floens/Clover/
* Copyright (C) 2014 Floens
*
* This program is free software: you can redistribute it and/or modify

@ -1,33 +0,0 @@
LoaderPool:
Loader obtain(Loadable):
If loader already obtained somewhere, return the existing Loader
Create a new Loader if not obtained somewhere else.
void release(Loader):
If no more listeners on loader, call destroy()
Loader:
void destroy():
void requestData():
load from beginning
void requestNextData():
board: load next page
thread: reset new counter
int getUnread():
return unread posts
long getTimeUntilReload:
return time in ms until next reload
LoaderListener:
void onData(List<Post>, boolean append) can be called at any moment
append:
true if the displayer should append to existing posts
false if the displayer should replace existing posts
void onError(Error error) can be called at any moment
404: it's gone
EndOfLineException: no more pages

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

Loading…
Cancel
Save