Rename license headers

captchafix
Florens Douwes 11 years ago
parent afe1cb5592
commit 396d9d6369
  1. 2
      Clover/src/org/floens/chan/ChanApplication.java
  2. 2
      Clover/src/org/floens/chan/chan/ChanUrls.java
  3. 12
      Clover/src/org/floens/chan/core/ChanPreferences.java
  4. 2
      Clover/src/org/floens/chan/core/loader/EndOfLineException.java
  5. 8
      Clover/src/org/floens/chan/core/loader/Loader.java
  6. 2
      Clover/src/org/floens/chan/core/loader/LoaderPool.java
  7. 22
      Clover/src/org/floens/chan/core/manager/BoardManager.java
  8. 10
      Clover/src/org/floens/chan/core/manager/PinnedManager.java
  9. 16
      Clover/src/org/floens/chan/core/manager/ReplyManager.java
  10. 10
      Clover/src/org/floens/chan/core/manager/ThreadManager.java
  11. 8
      Clover/src/org/floens/chan/core/model/Board.java
  12. 8
      Clover/src/org/floens/chan/core/model/Loadable.java
  13. 4
      Clover/src/org/floens/chan/core/model/Pass.java
  14. 2
      Clover/src/org/floens/chan/core/model/Pin.java
  15. 4
      Clover/src/org/floens/chan/core/model/Post.java
  16. 2
      Clover/src/org/floens/chan/core/model/PostLinkable.java
  17. 2
      Clover/src/org/floens/chan/core/model/Reply.java
  18. 2
      Clover/src/org/floens/chan/core/model/SavedReply.java
  19. 2
      Clover/src/org/floens/chan/core/net/BitmapLruImageCache.java
  20. 2
      Clover/src/org/floens/chan/core/net/BoardsRequest.java
  21. 2
      Clover/src/org/floens/chan/core/net/ByteArrayRequest.java
  22. 4
      Clover/src/org/floens/chan/core/net/ChanReaderRequest.java
  23. 2
      Clover/src/org/floens/chan/core/net/FileRequest.java
  24. 2
      Clover/src/org/floens/chan/core/net/GIFRequest.java
  25. 2
      Clover/src/org/floens/chan/core/net/JsonReaderRequest.java
  26. 2
      Clover/src/org/floens/chan/core/watch/PinWatcher.java
  27. 2
      Clover/src/org/floens/chan/core/watch/WatchNotifier.java
  28. 4
      Clover/src/org/floens/chan/database/DatabaseHelper.java
  29. 12
      Clover/src/org/floens/chan/database/DatabaseManager.java
  30. 4
      Clover/src/org/floens/chan/service/WatchService.java
  31. 2
      Clover/src/org/floens/chan/ui/BadgeDrawable.java
  32. 2
      Clover/src/org/floens/chan/ui/ScrollerRunnable.java
  33. 4
      Clover/src/org/floens/chan/ui/ViewFlipperAnimations.java
  34. 2
      Clover/src/org/floens/chan/ui/activity/AboutActivity.java
  35. 14
      Clover/src/org/floens/chan/ui/activity/BaseActivity.java
  36. 10
      Clover/src/org/floens/chan/ui/activity/BoardActivity.java
  37. 2
      Clover/src/org/floens/chan/ui/activity/BoardEditor.java
  38. 2
      Clover/src/org/floens/chan/ui/activity/DeveloperActivity.java
  39. 2
      Clover/src/org/floens/chan/ui/activity/ImagePickActivity.java
  40. 4
      Clover/src/org/floens/chan/ui/activity/ImageViewActivity.java
  41. 2
      Clover/src/org/floens/chan/ui/activity/PassSettingsActivity.java
  42. 2
      Clover/src/org/floens/chan/ui/activity/ReplyActivity.java
  43. 2
      Clover/src/org/floens/chan/ui/activity/SettingsActivity.java
  44. 2
      Clover/src/org/floens/chan/ui/activity/WatchSettingsActivity.java
  45. 4
      Clover/src/org/floens/chan/ui/adapter/ImageViewAdapter.java
  46. 2
      Clover/src/org/floens/chan/ui/adapter/PinnedAdapter.java
  47. 2
      Clover/src/org/floens/chan/ui/adapter/PostAdapter.java
  48. 2
      Clover/src/org/floens/chan/ui/fragment/ImageViewFragment.java
  49. 2
      Clover/src/org/floens/chan/ui/fragment/PostRepliesFragment.java
  50. 8
      Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java
  51. 2
      Clover/src/org/floens/chan/ui/fragment/SettingsFragment.java
  52. 4
      Clover/src/org/floens/chan/ui/fragment/ThreadFragment.java
  53. 2
      Clover/src/org/floens/chan/ui/view/GIFView.java
  54. 8
      Clover/src/org/floens/chan/ui/view/HackyViewPager.java
  55. 4
      Clover/src/org/floens/chan/ui/view/LoadView.java
  56. 2
      Clover/src/org/floens/chan/ui/view/NetworkPhotoView.java
  57. 4
      Clover/src/org/floens/chan/ui/view/PostView.java
  58. 2
      Clover/src/org/floens/chan/ui/view/ThreadWatchCounterView.java
  59. 2
      Clover/src/org/floens/chan/ui/view/ThumbnailImageView.java
  60. 4
      Clover/src/org/floens/chan/utils/IOUtils.java
  61. 4
      Clover/src/org/floens/chan/utils/IconCache.java
  62. 2
      Clover/src/org/floens/chan/utils/ImageDecoder.java
  63. 2
      Clover/src/org/floens/chan/utils/ImageSaver.java
  64. 2
      Clover/src/org/floens/chan/utils/Logger.java
  65. 2
      Clover/src/org/floens/chan/utils/SimpleAnimatorListener.java
  66. 4
      Clover/src/org/floens/chan/utils/Time.java
  67. 10
      Clover/src/org/floens/chan/utils/Utils.java

@ -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,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,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
@ -52,7 +52,7 @@ public class ChanPreferences {
/**
* This also calls updateRunningState on the PinnedService to start/stop the
* service as needed.
*
*
* @param enabled
*/
public static void setWatchEnabled(boolean enabled) {
@ -85,19 +85,19 @@ public class ChanPreferences {
ChanApplication.getPreferences().edit().putBoolean("preference_pass_enabled", enabled).commit();
}
}
public static String getPassToken() {
return ChanApplication.getPreferences().getString("preference_pass_token", "");
}
public static String getPassPin() {
return ChanApplication.getPreferences().getString("preference_pass_pin", "");
}
public static void setPassId(String id) {
ChanApplication.getPreferences().edit().putString("preference_pass_id", id).commit();
}
public static String getPassId() {
return ChanApplication.getPreferences().getString("preference_pass_id", "");
}

@ -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,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
@ -61,7 +61,7 @@ public class Loader {
/**
* Add a LoaderListener
*
*
* @param l
* the listener to add
*/
@ -71,7 +71,7 @@ public class Loader {
/**
* Remove a LoaderListener
*
*
* @param l
* the listener to remove
* @return true if there are no more listeners, false otherwise
@ -183,7 +183,7 @@ public class Loader {
/**
* Get the time in milliseconds until another loadMore is recommended
*
*
* @return
*/
public long getTimeUntilLoadMore() {

@ -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,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
@ -37,7 +37,7 @@ public class BoardManager {
@Override
public int compare(Board lhs, Board rhs) {
return lhs.order < rhs.order ? -1 : 1;
}
}
};
private List<Board> allBoards;
@ -61,7 +61,7 @@ public class BoardManager {
if (b.saved)
saved.add(b);
}
Collections.sort(saved, savedOrder);
return saved;
@ -99,10 +99,10 @@ public class BoardManager {
ChanApplication.getDatabaseManager().updateBoards(allBoards);
reloadSavedKeysValues();
}
private void reloadSavedKeysValues() {
List<Board> saved = getSavedBoards();
savedKeys.clear();
for (Board board : saved) {
savedKeys.add(board.key);
@ -116,13 +116,13 @@ public class BoardManager {
private void storeBoards() {
Logger.d(TAG, "Storing boards in database");
for (Board test : allBoards) {
if (test.saved) {
Logger.w(TAG, "Board with value " + test.value + " saved");
}
}
ChanApplication.getDatabaseManager().setBoards(allBoards);
}
@ -133,10 +133,10 @@ public class BoardManager {
allBoards = getDefaultBoards();
storeBoards();
}
reloadSavedKeysValues();
}
private void setBoardsFromServer(List<Board> list) {
boolean changed = false;
for (Board serverBoard : list) {
@ -147,14 +147,14 @@ public class BoardManager {
break;
}
}
if (!has) {
Logger.d(TAG, "Adding unknown board: " + serverBoard.value);
allBoards.add(serverBoard);
changed = true;
}
}
if (changed) {
storeBoards();
}

@ -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
@ -45,7 +45,7 @@ public class PinnedManager {
/**
* Look for a pin that has an loadable that is equal to the supplied
* loadable.
*
*
* @param other
* @return The pin whose loadable is equal to the supplied loadable, or null
* if no pin was found.
@ -77,7 +77,7 @@ public class PinnedManager {
/**
* Add a pin
*
*
* @param pin
* @return true if it was added, false if it wasn't (duplicated)
*/
@ -99,7 +99,7 @@ public class PinnedManager {
/**
* Remove a pin
*
*
* @param pin
*/
public void remove(Pin pin) {
@ -112,7 +112,7 @@ public class PinnedManager {
/**
* Update the pin in the database
*
*
* @param pin
*/
public void update(Pin pin) {

@ -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
@ -80,7 +80,7 @@ public class ReplyManager {
/**
* Set an reply draft.
*
*
* @param value
* the draft to save.
*/
@ -90,7 +90,7 @@ public class ReplyManager {
/**
* Gets the saved reply draft.
*
*
* @return the saved draft or an empty draft.
*/
public Reply getReplyDraft() {
@ -99,7 +99,7 @@ public class ReplyManager {
/**
* Add an quote to the comment field. Looks like >>123456789\n
*
*
* @param no
* the raw no to quote to.
*/
@ -109,7 +109,7 @@ public class ReplyManager {
/**
* Pick an file. Starts up the ImagePickActivity.
*
*
* @param listener
* FileListener to listen on.
*/
@ -156,7 +156,7 @@ public class ReplyManager {
/**
* Get the CAPTCHA challenge hash from an JSON response.
*
*
* @param total
* The total response from the server
* @return The pattern, or null when none was found.
@ -263,7 +263,7 @@ public class ReplyManager {
/**
* Send an reply off to the server.
*
*
* @param reply
* The reply object with all data needed, like captcha and the
* file.
@ -340,7 +340,7 @@ public class ReplyManager {
/**
* Send an reply off to the server.
*
*
* @param reply
* The reply object with all data needed, like captcha and the
* file.

@ -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
@ -333,7 +333,7 @@ public class ThreadManager implements Loader.LoaderListener {
* When the user clicks a post: a. when there's one linkable, open the
* linkable. b. when there's more than one linkable, show the user multiple
* options to select from.
*
*
* @param post
* The post that was clicked.
*/
@ -379,7 +379,7 @@ public class ThreadManager implements Loader.LoaderListener {
/**
* Handle when a linkable has been clicked.
*
*
* @param linkable
* the selected linkable.
*/
@ -410,7 +410,7 @@ public class ThreadManager implements Loader.LoaderListener {
/**
* When a linkable to a post has been clicked, show a dialog with the
* referenced post in it.
*
*
* @param linkable
* the clicked linkable.
*/
@ -440,7 +440,7 @@ public class ThreadManager implements Loader.LoaderListener {
/**
* Open an url.
*
*
* @param linkable
* Linkable with an url.
*/

@ -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
@ -24,14 +24,14 @@ import com.j256.ormlite.table.DatabaseTable;
public class Board {
public Board() {
}
public Board(String key, String value, boolean saved, boolean workSafe) {
this.key = key;
this.value = value;
this.saved = saved;
this.workSafe = workSafe;
}
@DatabaseField(generatedId = true)
public int id;
@ -66,7 +66,7 @@ public class Board {
public String toString() {
return key;
}
public boolean valueEquals(Board other) {
return value.equals(other.value);
}

@ -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
@ -63,7 +63,7 @@ public class Loadable {
/**
* Quick constructor for a board loadable.
*
*
* @param board
*/
public Loadable(String board) {
@ -74,7 +74,7 @@ public class Loadable {
/**
* Quick constructor for a thread loadable.
*
*
* @param board
* @param no
*/
@ -86,7 +86,7 @@ public class Loadable {
/**
* Quick constructor for a thread loadable with an title.
*
*
* @param board
* @param no
* @param title

@ -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
@ -20,7 +20,7 @@ package org.floens.chan.core.model;
public class Pass {
public String token = "";
public String pin = "";
public Pass(String token, String pin) {
this.token = token;
this.pin = pin;

@ -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,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
@ -112,7 +112,7 @@ public class Post {
/**
* Finish up the data
*
*
* @return false if this data is invalid
*/
public boolean finish(Loadable loadable) {

@ -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,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,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,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,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,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,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
@ -42,7 +42,7 @@ public class ChanReaderRequest extends JsonReaderRequest<List<Post>> {
/**
* Creates a ChanReaderRequest with supplied params
*
*
* @param mode
* ThreadManager mode
* @param board

@ -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,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,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,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,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,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
@ -43,7 +43,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
public Dao<Loadable, Integer> loadableDao;
public Dao<SavedReply, Integer> savedDao;
public Dao<Board, Integer> boardsDao;
private final Context context;
public DatabaseHelper(Context context) {

@ -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
@ -142,7 +142,7 @@ public class DatabaseManager {
for (Board b : boards) {
helper.boardsDao.createOrUpdate(b);
}
return null;
}
});
@ -150,7 +150,7 @@ public class DatabaseManager {
Logger.e(TAG, "Error setting boards in db", e);
}
}
public void updateBoards(final List<Board> boards) {
try {
helper.boardsDao.callBatchTasks(new Callable<Void>() {
@ -160,9 +160,9 @@ public class DatabaseManager {
for (Board b : boards) {
helper.boardsDao.update(b);
}
Logger.d(TAG, "Update board took " + Time.get(start));
return null;
}
});
@ -178,7 +178,7 @@ public class DatabaseManager {
} catch (SQLException e) {
Logger.e(TAG, "Error getting boards from db", e);
}
return boards;
}

@ -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
@ -207,7 +207,7 @@ public class WatchService extends Service {
/**
* Returns the sleep time the user specified for background iteration
*
*
* @return the sleep time in ms, or -1 if background reloading is disabled
*/
private long getBackgroundTimeout() {

@ -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,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,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
@ -31,7 +31,7 @@ public class ViewFlipperAnimations {
public static TranslateAnimation NEXT_OUT;
static {
// Setup the static TranslateAnimations for the ViewFlipper
// Setup the static TranslateAnimations for the ViewFlipper
BACK_IN = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, -1f, Animation.RELATIVE_TO_PARENT, 0f, 0, 0f, 0,
0f);
BACK_IN.setInterpolator(new AccelerateDecelerateInterpolator());

@ -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,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
@ -71,14 +71,14 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
/**
* Called when a post has been clicked in the pinned drawer
*
*
* @param post
*/
abstract public void openPin(Pin post);
/**
* Called when a post has been clicked in the listview
*
*
* @param post
*/
abstract public void onOPClicked(Post post);
@ -151,7 +151,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
return true;
}
});
SwipeDismissListViewTouchListener touchListener = new SwipeDismissListViewTouchListener(pinDrawerView,
new DismissCallbacks() {
@Override
@ -166,7 +166,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
return pinnedAdapter.getItem(position).type != Pin.Type.HEADER;
}
});
touchListener.setSlop((int) (touchListener.getSlop() * 0.4f));
pinDrawerView.setOnTouchListener(touchListener);
@ -280,7 +280,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
/**
* Set the url that Android Beam and the share action will send.
*
*
* @param url
*/
public void setShareUrl(String url) {
@ -313,7 +313,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
/**
* Let the user choose between all activities that can open the url. This is
* done to prevent "open in browser" opening the url in our own app.
*
*
* @param url
*/
public void showUrlOpenPicker(String url) {

@ -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
@ -94,7 +94,7 @@ public class BoardActivity extends BaseActivity implements ActionBar.OnNavigatio
if (boardLoadable.mode == Loadable.Mode.INVALID) {
List<String> savedValues = ChanApplication.getBoardManager().getSavedValues();
if (savedValues.size() > 0) {
loadBoard(savedValues.get(0));
loadBoard(savedValues.get(0));
}
}
}
@ -166,7 +166,7 @@ public class BoardActivity extends BaseActivity implements ActionBar.OnNavigatio
LayoutParams rightParams = right.getLayoutParams();
// Content view dp's:
// Nexus 4 is 384 x 640 dp
// Nexus 4 is 384 x 640 dp
// Nexus 7 is 600 x 960 dp
// Nexus 10 is 800 x 1280 dp
@ -389,7 +389,7 @@ public class BoardActivity extends BaseActivity implements ActionBar.OnNavigatio
/**
* Sets the navigator to appropriately and calls startLoadingBoard
*
*
* @param board
*/
private void loadBoard(String board) {
@ -465,7 +465,7 @@ public class BoardActivity extends BaseActivity implements ActionBar.OnNavigatio
/**
* Handle opening from an external url.
*
*
* @param startUri
*/
private void handleIntentURI(Uri startUri) {

@ -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,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,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,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
@ -53,7 +53,7 @@ public class ImageViewActivity extends Activity implements ViewPager.OnPageChang
/**
* Set the posts to show
*
*
* @param other
* the posts to get image data from
* @param selected

@ -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,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,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,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,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
@ -69,7 +69,7 @@ public class ImageViewAdapter extends FragmentStatePagerAdapter {
notifyDataSetChanged();
}
public List<Post> getList() {
return postList;
}

@ -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,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,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,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,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
@ -309,7 +309,7 @@ public class ReplyFragment extends DialogFragment {
/**
* Flip to an page with an animation. Sets the correct text on the
* cancelButton:
*
*
* @param position
* 0-2
*/
@ -340,7 +340,7 @@ public class ReplyFragment extends DialogFragment {
/**
* Set the picked image in the imageView. Sets the file in the draft. Call
* null on the file to empty the imageView.
*
*
* @param imagePath
* file to image to send or null to clear
*/
@ -482,7 +482,7 @@ public class ReplyFragment extends DialogFragment {
/**
* Got response about or reply from ReplyManager
*
*
* @param response
*/
private void handleSubmitResponse(ReplyResponse response) {

@ -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,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
@ -195,7 +195,7 @@ public class ThreadFragment extends Fragment implements ThreadManager.ThreadMana
/**
* Returns an TextView containing the appropriate error message
*
*
* @param error
* @return
*/

@ -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,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
@ -25,14 +25,14 @@ import android.view.MotionEvent;
/**
* Hacky fix for Issue #4 and
* http://code.google.com/p/android/issues/detail?id=18990
*
*
* ScaleGestureDetector seems to mess up the touch events, which means that
* ViewGroups which make use of onInterceptTouchEvent throw a lot of
* IllegalArgumentException: pointerIndex out of range.
*
*
* There's not much I can do in my code for now, but we can mask the result by
* just catching the problem and ignoring it.
*
*
* @author Chris Banes
*/
public class HackyViewPager extends ViewPager {

@ -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
@ -57,7 +57,7 @@ public class LoadView extends FrameLayout {
/**
* Set the content of this container. It will fade the old one out with the
* new one. Set view to null to show the progressbar.
*
*
* @param view
* the view or null for a progressbar.
*/

@ -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,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
@ -81,7 +81,7 @@ public class PostView extends LinearLayout implements View.OnClickListener, View
/**
* Represents a post. Use setPost(Post ThreadManager) to fill it with data.
* setPost can be called multiple times (useful for ListView).
*
*
* @param activity
*/
public PostView(Context activity) {

@ -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,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,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
@ -42,7 +42,7 @@ public class IOUtils {
/**
* Copies the inputstream to the outputstream and closes both streams.
*
*
* @param is
* @param os
* @throws IOException

@ -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
@ -29,7 +29,7 @@ public class IconCache {
/**
* Load the icons in the cache. Lightweight icons only! Icons can be null!
*
*
* @param context
*/
public static void createIcons(final Context context) {

@ -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,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,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,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,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
@ -21,7 +21,7 @@ public class Time {
public static long get() {
return System.currentTimeMillis();
}
public static long get(long other) {
return System.currentTimeMillis() - other;
}

@ -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
@ -61,7 +61,7 @@ public class Utils {
/**
* Sets the android.R.attr.selectableItemBackground as background drawable
* on the view.
*
*
* @param view
*/
@SuppressWarnings("deprecation")
@ -83,13 +83,13 @@ public class Utils {
/**
* Causes the runnable to be added to the message queue. The runnable will
* be run on the ui thread.
*
*
* @param runnable
*/
public static void runOnUiThread(Runnable runnable) {
new Handler(Looper.getMainLooper()).post(runnable);
}
public static void requestKeyboardFocus(Dialog dialog, final View view) {
view.requestFocus();
dialog.setOnShowListener(new OnShowListener() {
@ -100,7 +100,7 @@ public class Utils {
}
});
}
public static void openLink(Context context, String link) {
try {
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(link)));

Loading…
Cancel
Save