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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * This also calls updateRunningState on the PinnedService to start/stop the
* service as needed. * service as needed.
* *
* @param enabled * @param enabled
*/ */
public static void setWatchEnabled(boolean enabled) { public static void setWatchEnabled(boolean enabled) {
@ -85,19 +85,19 @@ public class ChanPreferences {
ChanApplication.getPreferences().edit().putBoolean("preference_pass_enabled", enabled).commit(); ChanApplication.getPreferences().edit().putBoolean("preference_pass_enabled", enabled).commit();
} }
} }
public static String getPassToken() { public static String getPassToken() {
return ChanApplication.getPreferences().getString("preference_pass_token", ""); return ChanApplication.getPreferences().getString("preference_pass_token", "");
} }
public static String getPassPin() { public static String getPassPin() {
return ChanApplication.getPreferences().getString("preference_pass_pin", ""); return ChanApplication.getPreferences().getString("preference_pass_pin", "");
} }
public static void setPassId(String id) { public static void setPassId(String id) {
ChanApplication.getPreferences().edit().putString("preference_pass_id", id).commit(); ChanApplication.getPreferences().edit().putString("preference_pass_id", id).commit();
} }
public static String getPassId() { public static String getPassId() {
return ChanApplication.getPreferences().getString("preference_pass_id", ""); 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -61,7 +61,7 @@ public class Loader {
/** /**
* Add a LoaderListener * Add a LoaderListener
* *
* @param l * @param l
* the listener to add * the listener to add
*/ */
@ -71,7 +71,7 @@ public class Loader {
/** /**
* Remove a LoaderListener * Remove a LoaderListener
* *
* @param l * @param l
* the listener to remove * the listener to remove
* @return true if there are no more listeners, false otherwise * @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 * Get the time in milliseconds until another loadMore is recommended
* *
* @return * @return
*/ */
public long getTimeUntilLoadMore() { 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -37,7 +37,7 @@ public class BoardManager {
@Override @Override
public int compare(Board lhs, Board rhs) { public int compare(Board lhs, Board rhs) {
return lhs.order < rhs.order ? -1 : 1; return lhs.order < rhs.order ? -1 : 1;
} }
}; };
private List<Board> allBoards; private List<Board> allBoards;
@ -61,7 +61,7 @@ public class BoardManager {
if (b.saved) if (b.saved)
saved.add(b); saved.add(b);
} }
Collections.sort(saved, savedOrder); Collections.sort(saved, savedOrder);
return saved; return saved;
@ -99,10 +99,10 @@ public class BoardManager {
ChanApplication.getDatabaseManager().updateBoards(allBoards); ChanApplication.getDatabaseManager().updateBoards(allBoards);
reloadSavedKeysValues(); reloadSavedKeysValues();
} }
private void reloadSavedKeysValues() { private void reloadSavedKeysValues() {
List<Board> saved = getSavedBoards(); List<Board> saved = getSavedBoards();
savedKeys.clear(); savedKeys.clear();
for (Board board : saved) { for (Board board : saved) {
savedKeys.add(board.key); savedKeys.add(board.key);
@ -116,13 +116,13 @@ public class BoardManager {
private void storeBoards() { private void storeBoards() {
Logger.d(TAG, "Storing boards in database"); Logger.d(TAG, "Storing boards in database");
for (Board test : allBoards) { for (Board test : allBoards) {
if (test.saved) { if (test.saved) {
Logger.w(TAG, "Board with value " + test.value + " saved"); Logger.w(TAG, "Board with value " + test.value + " saved");
} }
} }
ChanApplication.getDatabaseManager().setBoards(allBoards); ChanApplication.getDatabaseManager().setBoards(allBoards);
} }
@ -133,10 +133,10 @@ public class BoardManager {
allBoards = getDefaultBoards(); allBoards = getDefaultBoards();
storeBoards(); storeBoards();
} }
reloadSavedKeysValues(); reloadSavedKeysValues();
} }
private void setBoardsFromServer(List<Board> list) { private void setBoardsFromServer(List<Board> list) {
boolean changed = false; boolean changed = false;
for (Board serverBoard : list) { for (Board serverBoard : list) {
@ -147,14 +147,14 @@ public class BoardManager {
break; break;
} }
} }
if (!has) { if (!has) {
Logger.d(TAG, "Adding unknown board: " + serverBoard.value); Logger.d(TAG, "Adding unknown board: " + serverBoard.value);
allBoards.add(serverBoard); allBoards.add(serverBoard);
changed = true; changed = true;
} }
} }
if (changed) { if (changed) {
storeBoards(); 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Look for a pin that has an loadable that is equal to the supplied
* loadable. * loadable.
* *
* @param other * @param other
* @return The pin whose loadable is equal to the supplied loadable, or null * @return The pin whose loadable is equal to the supplied loadable, or null
* if no pin was found. * if no pin was found.
@ -77,7 +77,7 @@ public class PinnedManager {
/** /**
* Add a pin * Add a pin
* *
* @param pin * @param pin
* @return true if it was added, false if it wasn't (duplicated) * @return true if it was added, false if it wasn't (duplicated)
*/ */
@ -99,7 +99,7 @@ public class PinnedManager {
/** /**
* Remove a pin * Remove a pin
* *
* @param pin * @param pin
*/ */
public void remove(Pin pin) { public void remove(Pin pin) {
@ -112,7 +112,7 @@ public class PinnedManager {
/** /**
* Update the pin in the database * Update the pin in the database
* *
* @param pin * @param pin
*/ */
public void update(Pin 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -80,7 +80,7 @@ public class ReplyManager {
/** /**
* Set an reply draft. * Set an reply draft.
* *
* @param value * @param value
* the draft to save. * the draft to save.
*/ */
@ -90,7 +90,7 @@ public class ReplyManager {
/** /**
* Gets the saved reply draft. * Gets the saved reply draft.
* *
* @return the saved draft or an empty draft. * @return the saved draft or an empty draft.
*/ */
public Reply getReplyDraft() { public Reply getReplyDraft() {
@ -99,7 +99,7 @@ public class ReplyManager {
/** /**
* Add an quote to the comment field. Looks like >>123456789\n * Add an quote to the comment field. Looks like >>123456789\n
* *
* @param no * @param no
* the raw no to quote to. * the raw no to quote to.
*/ */
@ -109,7 +109,7 @@ public class ReplyManager {
/** /**
* Pick an file. Starts up the ImagePickActivity. * Pick an file. Starts up the ImagePickActivity.
* *
* @param listener * @param listener
* FileListener to listen on. * FileListener to listen on.
*/ */
@ -156,7 +156,7 @@ public class ReplyManager {
/** /**
* Get the CAPTCHA challenge hash from an JSON response. * Get the CAPTCHA challenge hash from an JSON response.
* *
* @param total * @param total
* The total response from the server * The total response from the server
* @return The pattern, or null when none was found. * @return The pattern, or null when none was found.
@ -263,7 +263,7 @@ public class ReplyManager {
/** /**
* Send an reply off to the server. * Send an reply off to the server.
* *
* @param reply * @param reply
* The reply object with all data needed, like captcha and the * The reply object with all data needed, like captcha and the
* file. * file.
@ -340,7 +340,7 @@ public class ReplyManager {
/** /**
* Send an reply off to the server. * Send an reply off to the server.
* *
* @param reply * @param reply
* The reply object with all data needed, like captcha and the * The reply object with all data needed, like captcha and the
* file. * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * 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 * linkable. b. when there's more than one linkable, show the user multiple
* options to select from. * options to select from.
* *
* @param post * @param post
* The post that was clicked. * The post that was clicked.
*/ */
@ -379,7 +379,7 @@ public class ThreadManager implements Loader.LoaderListener {
/** /**
* Handle when a linkable has been clicked. * Handle when a linkable has been clicked.
* *
* @param linkable * @param linkable
* the selected 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 * When a linkable to a post has been clicked, show a dialog with the
* referenced post in it. * referenced post in it.
* *
* @param linkable * @param linkable
* the clicked linkable. * the clicked linkable.
*/ */
@ -440,7 +440,7 @@ public class ThreadManager implements Loader.LoaderListener {
/** /**
* Open an url. * Open an url.
* *
* @param linkable * @param linkable
* Linkable with an url. * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 class Board {
public Board() { public Board() {
} }
public Board(String key, String value, boolean saved, boolean workSafe) { public Board(String key, String value, boolean saved, boolean workSafe) {
this.key = key; this.key = key;
this.value = value; this.value = value;
this.saved = saved; this.saved = saved;
this.workSafe = workSafe; this.workSafe = workSafe;
} }
@DatabaseField(generatedId = true) @DatabaseField(generatedId = true)
public int id; public int id;
@ -66,7 +66,7 @@ public class Board {
public String toString() { public String toString() {
return key; return key;
} }
public boolean valueEquals(Board other) { public boolean valueEquals(Board other) {
return value.equals(other.value); 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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. * Quick constructor for a board loadable.
* *
* @param board * @param board
*/ */
public Loadable(String board) { public Loadable(String board) {
@ -74,7 +74,7 @@ public class Loadable {
/** /**
* Quick constructor for a thread loadable. * Quick constructor for a thread loadable.
* *
* @param board * @param board
* @param no * @param no
*/ */
@ -86,7 +86,7 @@ public class Loadable {
/** /**
* Quick constructor for a thread loadable with an title. * Quick constructor for a thread loadable with an title.
* *
* @param board * @param board
* @param no * @param no
* @param title * @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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 class Pass {
public String token = ""; public String token = "";
public String pin = ""; public String pin = "";
public Pass(String token, String pin) { public Pass(String token, String pin) {
this.token = token; this.token = token;
this.pin = pin; 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -112,7 +112,7 @@ public class Post {
/** /**
* Finish up the data * Finish up the data
* *
* @return false if this data is invalid * @return false if this data is invalid
*/ */
public boolean finish(Loadable loadable) { 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Creates a ChanReaderRequest with supplied params
* *
* @param mode * @param mode
* ThreadManager mode * ThreadManager mode
* @param board * @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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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<Loadable, Integer> loadableDao;
public Dao<SavedReply, Integer> savedDao; public Dao<SavedReply, Integer> savedDao;
public Dao<Board, Integer> boardsDao; public Dao<Board, Integer> boardsDao;
private final Context context; private final Context context;
public DatabaseHelper(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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -142,7 +142,7 @@ public class DatabaseManager {
for (Board b : boards) { for (Board b : boards) {
helper.boardsDao.createOrUpdate(b); helper.boardsDao.createOrUpdate(b);
} }
return null; return null;
} }
}); });
@ -150,7 +150,7 @@ public class DatabaseManager {
Logger.e(TAG, "Error setting boards in db", e); Logger.e(TAG, "Error setting boards in db", e);
} }
} }
public void updateBoards(final List<Board> boards) { public void updateBoards(final List<Board> boards) {
try { try {
helper.boardsDao.callBatchTasks(new Callable<Void>() { helper.boardsDao.callBatchTasks(new Callable<Void>() {
@ -160,9 +160,9 @@ public class DatabaseManager {
for (Board b : boards) { for (Board b : boards) {
helper.boardsDao.update(b); helper.boardsDao.update(b);
} }
Logger.d(TAG, "Update board took " + Time.get(start)); Logger.d(TAG, "Update board took " + Time.get(start));
return null; return null;
} }
}); });
@ -178,7 +178,7 @@ public class DatabaseManager {
} catch (SQLException e) { } catch (SQLException e) {
Logger.e(TAG, "Error getting boards from db", e); Logger.e(TAG, "Error getting boards from db", e);
} }
return boards; 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Returns the sleep time the user specified for background iteration
* *
* @return the sleep time in ms, or -1 if background reloading is disabled * @return the sleep time in ms, or -1 if background reloading is disabled
*/ */
private long getBackgroundTimeout() { 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -31,7 +31,7 @@ public class ViewFlipperAnimations {
public static TranslateAnimation NEXT_OUT; public static TranslateAnimation NEXT_OUT;
static { 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, BACK_IN = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, -1f, Animation.RELATIVE_TO_PARENT, 0f, 0, 0f, 0,
0f); 0f);
BACK_IN.setInterpolator(new AccelerateDecelerateInterpolator()); 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Called when a post has been clicked in the pinned drawer
* *
* @param post * @param post
*/ */
abstract public void openPin(Pin post); abstract public void openPin(Pin post);
/** /**
* Called when a post has been clicked in the listview * Called when a post has been clicked in the listview
* *
* @param post * @param post
*/ */
abstract public void onOPClicked(Post post); abstract public void onOPClicked(Post post);
@ -151,7 +151,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
return true; return true;
} }
}); });
SwipeDismissListViewTouchListener touchListener = new SwipeDismissListViewTouchListener(pinDrawerView, SwipeDismissListViewTouchListener touchListener = new SwipeDismissListViewTouchListener(pinDrawerView,
new DismissCallbacks() { new DismissCallbacks() {
@Override @Override
@ -166,7 +166,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
return pinnedAdapter.getItem(position).type != Pin.Type.HEADER; return pinnedAdapter.getItem(position).type != Pin.Type.HEADER;
} }
}); });
touchListener.setSlop((int) (touchListener.getSlop() * 0.4f)); touchListener.setSlop((int) (touchListener.getSlop() * 0.4f));
pinDrawerView.setOnTouchListener(touchListener); 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. * Set the url that Android Beam and the share action will send.
* *
* @param url * @param url
*/ */
public void setShareUrl(String 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 * 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. * done to prevent "open in browser" opening the url in our own app.
* *
* @param url * @param url
*/ */
public void showUrlOpenPicker(String 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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) { if (boardLoadable.mode == Loadable.Mode.INVALID) {
List<String> savedValues = ChanApplication.getBoardManager().getSavedValues(); List<String> savedValues = ChanApplication.getBoardManager().getSavedValues();
if (savedValues.size() > 0) { 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(); LayoutParams rightParams = right.getLayoutParams();
// Content view dp's: // 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 7 is 600 x 960 dp
// Nexus 10 is 800 x 1280 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 * Sets the navigator to appropriately and calls startLoadingBoard
* *
* @param board * @param board
*/ */
private void loadBoard(String board) { private void loadBoard(String board) {
@ -465,7 +465,7 @@ public class BoardActivity extends BaseActivity implements ActionBar.OnNavigatio
/** /**
* Handle opening from an external url. * Handle opening from an external url.
* *
* @param startUri * @param startUri
*/ */
private void handleIntentURI(Uri 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Set the posts to show
* *
* @param other * @param other
* the posts to get image data from * the posts to get image data from
* @param selected * @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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -69,7 +69,7 @@ public class ImageViewAdapter extends FragmentStatePagerAdapter {
notifyDataSetChanged(); notifyDataSetChanged();
} }
public List<Post> getList() { public List<Post> getList() {
return postList; 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Flip to an page with an animation. Sets the correct text on the
* cancelButton: * cancelButton:
* *
* @param position * @param position
* 0-2 * 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 * Set the picked image in the imageView. Sets the file in the draft. Call
* null on the file to empty the imageView. * null on the file to empty the imageView.
* *
* @param imagePath * @param imagePath
* file to image to send or null to clear * 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 * Got response about or reply from ReplyManager
* *
* @param response * @param response
*/ */
private void handleSubmitResponse(ReplyResponse 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Returns an TextView containing the appropriate error message
* *
* @param error * @param error
* @return * @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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Hacky fix for Issue #4 and
* http://code.google.com/p/android/issues/detail?id=18990 * http://code.google.com/p/android/issues/detail?id=18990
* *
* ScaleGestureDetector seems to mess up the touch events, which means that * ScaleGestureDetector seems to mess up the touch events, which means that
* ViewGroups which make use of onInterceptTouchEvent throw a lot of * ViewGroups which make use of onInterceptTouchEvent throw a lot of
* IllegalArgumentException: pointerIndex out of range. * IllegalArgumentException: pointerIndex out of range.
* *
* There's not much I can do in my code for now, but we can mask the result by * 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. * just catching the problem and ignoring it.
* *
* @author Chris Banes * @author Chris Banes
*/ */
public class HackyViewPager extends ViewPager { 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * 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. * new one. Set view to null to show the progressbar.
* *
* @param view * @param view
* the view or null for a progressbar. * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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. * Represents a post. Use setPost(Post ThreadManager) to fill it with data.
* setPost can be called multiple times (useful for ListView). * setPost can be called multiple times (useful for ListView).
* *
* @param activity * @param activity
*/ */
public PostView(Context 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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. * Copies the inputstream to the outputstream and closes both streams.
* *
* @param is * @param is
* @param os * @param os
* @throws IOException * @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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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! * Load the icons in the cache. Lightweight icons only! Icons can be null!
* *
* @param context * @param context
*/ */
public static void createIcons(final Context 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
@ -21,7 +21,7 @@ public class Time {
public static long get() { public static long get() {
return System.currentTimeMillis(); return System.currentTimeMillis();
} }
public static long get(long other) { public static long get(long other) {
return System.currentTimeMillis() - 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 * Copyright (C) 2014 Floens
* *
* This program is free software: you can redistribute it and/or modify * 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 * Sets the android.R.attr.selectableItemBackground as background drawable
* on the view. * on the view.
* *
* @param view * @param view
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@ -83,13 +83,13 @@ public class Utils {
/** /**
* Causes the runnable to be added to the message queue. The runnable will * Causes the runnable to be added to the message queue. The runnable will
* be run on the ui thread. * be run on the ui thread.
* *
* @param runnable * @param runnable
*/ */
public static void runOnUiThread(Runnable runnable) { public static void runOnUiThread(Runnable runnable) {
new Handler(Looper.getMainLooper()).post(runnable); new Handler(Looper.getMainLooper()).post(runnable);
} }
public static void requestKeyboardFocus(Dialog dialog, final View view) { public static void requestKeyboardFocus(Dialog dialog, final View view) {
view.requestFocus(); view.requestFocus();
dialog.setOnShowListener(new OnShowListener() { dialog.setOnShowListener(new OnShowListener() {
@ -100,7 +100,7 @@ public class Utils {
} }
}); });
} }
public static void openLink(Context context, String link) { public static void openLink(Context context, String link) {
try { try {
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(link))); context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(link)));

Loading…
Cancel
Save