Commit e56dfae8 authored by Nihar Thakkar's avatar Nihar Thakkar

Add authors and update copyrights

parent 4c6aab87
......@@ -89,6 +89,10 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.ref.WeakReference;
/**
* Authors: Nihar Thakkar and others
*/
public class MainActivity extends WebViewExtActivity implements
SearchBarController.OnCancelListener
{
......
......@@ -31,6 +31,10 @@ import android.widget.Toast;
import io.eelo.browser.utils.PrefsUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class SettingsActivity extends AppCompatActivity {
@Override
......
......@@ -40,6 +40,10 @@ import android.widget.LinearLayout;
import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class FavoriteActivity extends AppCompatActivity {
private RecyclerView mList;
private View mEmptyView;
......
......@@ -23,6 +23,10 @@ import android.view.ViewGroup;
import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
class FavoriteAdapter extends RecyclerView.Adapter<FavoriteHolder> {
private final Context mContext;
private Cursor mCursor;
......
......@@ -28,6 +28,10 @@ import io.eelo.browser.MainActivity;
import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
class FavoriteHolder extends RecyclerView.ViewHolder {
private final CardView mCard;
private final TextView mTitle;
......
......@@ -30,6 +30,10 @@ import android.provider.BaseColumns;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Authors: Nihar Thakkar and others
*/
public class FavoriteProvider extends ContentProvider {
public interface Columns extends BaseColumns {
String AUTHORITY = "io.eelo.browser.favorite";
......
......@@ -37,6 +37,10 @@ import android.view.View;
import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class HistoryActivity extends AppCompatActivity {
private View mEmptyView;
......
......@@ -28,6 +28,10 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryAdapter extends RecyclerView.Adapter<HistoryHolder> {
private final Context mContext;
private final DateFormat mHistoryDateFormat;
......
......@@ -25,6 +25,10 @@ import android.view.View;
import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryAnimationDecorator extends RecyclerView.ItemDecoration {
private final Drawable mBackground;
......
......@@ -29,6 +29,10 @@ import android.view.View;
import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryCallBack extends ItemTouchHelper.SimpleCallback {
private final ContentResolver mResolver;
private final Drawable mBackground;
......
......@@ -30,6 +30,10 @@ import io.eelo.browser.MainActivity;
import io.eelo.browser.R;
import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
class HistoryHolder extends RecyclerView.ViewHolder {
private final LinearLayout mRootLayout;
......
......@@ -30,6 +30,10 @@ import android.provider.BaseColumns;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Authors: Nihar Thakkar and others
*/
public class HistoryProvider extends ContentProvider {
public interface Columns extends BaseColumns {
String AUTHORITY = "io.eelo.browser.history";
......
......@@ -22,6 +22,8 @@ import org.json.JSONArray;
import org.json.JSONObject;
/**
* Authors: Nihar Thakkar and others
*
* The search suggestions provider for the DuckDuckGo search engine.
*/
class DuckSuggestionProvider extends SuggestionProvider {
......
/*
* Copyright (C) 2017 The LineageOS Project
* Copyright (C) 2018 e Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -22,6 +23,8 @@ import org.json.JSONArray;
import org.json.JSONObject;
/**
* Authors: Nihar Thakkar and others
*
* Search suggestions provider for the eelo spot search engine.
*/
class EeloSuggestionProvider extends SuggestionProvider
......
/*
* Copyright (C) 2017 The LineageOS Project
* Copyright (C) 2018 e Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -22,6 +23,8 @@ import org.json.JSONArray;
import org.json.JSONObject;
/**
* Authors: Nihar Thakkar and others
*
* Search suggestions provider for the Qwant search engine.
*/
class QwantSuggestionProvider extends SuggestionProvider
......
......@@ -37,6 +37,8 @@ import java.util.Locale;
import java.util.concurrent.TimeUnit;
/**
* Authors: Nihar Thakkar and others
*
* The base search suggestions API. Provides common
* fetching and caching functionality for each potential
* suggestions provider.
......
......@@ -36,6 +36,10 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* Authors: Romain HUNAULT, Nihar Thakkar and others
*/
public class SuggestionsAdapter extends BaseAdapter implements Filterable
{
private final ArrayList<String> mItems = new ArrayList<>();
......
......@@ -24,6 +24,10 @@ import android.graphics.Shader;
import android.support.v7.widget.AppCompatAutoCompleteTextView;
import android.util.AttributeSet;
/**
* Authors: Nihar Thakkar and others
*/
public class AutoCompleteTextViewExt extends AppCompatAutoCompleteTextView {
private OnFocusChangeListener mFocusChangeListener;
private int mPositionX;
......
......@@ -25,6 +25,10 @@ import android.widget.TextView;
import io.eelo.browser.R;
/**
* Authors: Nihar Thakkar and others
*/
public class KeyValueView extends LinearLayout {
private TextView mKeyView;
private TextView mValueView;
......
......@@ -28,6 +28,10 @@ import android.widget.TextView;
import io.eelo.browser.utils.UiUtils;
/**
* Authors: Nihar Thakkar and others
*/
public class SearchBarController implements
TextWatcher, TextView.OnEditorActionListener, WebView.FindListener, View.OnClickListener {
public interface OnCancelListener {
......
......@@ -31,6 +31,10 @@ import io.eelo.browser.R;
import java.text.DateFormat;
import java.util.Date;
/**
* Authors: Nihar Thakkar and others
*/
public class UrlBarController implements View.OnFocusChangeListener {
private EditText mEditor;
private ImageView mSecureIcon;
......
......@@ -23,6 +23,10 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
* Authors: Nihar Thakkar and others
*/
public class FileUtils {
@NonNull
public static String readStringFromStream(@NonNull InputStream inputStream,
......
......@@ -21,6 +21,10 @@ import android.preference.PreferenceManager;
import io.eelo.browser.R;
/**
* Authors: Romain HUNAULT, Nihar Thakkar and others
*/
public final class PrefsUtils
{
private static final String KEY_SEARCH_ENGINE = "key_search_engine";
......
......@@ -32,6 +32,10 @@ import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.ImageButton;
/**
* Authors: Nihar Thakkar and others
*/
public final class UiUtils {
private UiUtils() {
......
......@@ -22,6 +22,10 @@ import android.webkit.URLUtil;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Authors: Nihar Thakkar and others
*/
public final class UrlUtils {
public static final Pattern ACCEPTED_URI_SCHEMA = Pattern.compile(
"(?i)" + // switch on case insensitive matching
......
......@@ -31,6 +31,10 @@ import io.eelo.browser.R;
import io.eelo.browser.history.HistoryProvider;
import io.eelo.browser.ui.UrlBarController;
/**
* Authors: Nihar Thakkar and others
*/
class ChromeClient extends WebChromeClientCompat {
private final WebViewExtActivity mActivity;
private final boolean mIncognito;
......
......@@ -50,6 +50,10 @@ import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
/**
* Authors: Nihar Thakkar and others
*/
class WebClient extends WebViewClient {
private UrlBarController mUrlBarController;
......
......@@ -35,6 +35,10 @@ import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Authors: Nihar Thakkar and others
*/
public class WebViewExt extends WebView {
private static final String TAG = "WebViewExt";
......
......@@ -20,6 +20,10 @@ import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.webkit.WebChromeClient;
/**
* Authors: Nihar Thakkar and others
*/
public abstract class WebViewExtActivity extends AppCompatActivity {
public abstract void downloadFileAsk(String url, String contentDisposition, String mimeType);
......
......@@ -18,6 +18,10 @@ package io.eelo.browser;
import android.content.IntentFilter;
/**
* Authors: Nihar Thakkar and others
*/
public class IntentFilterCompat {
public static boolean filterIsBrowser(IntentFilter filter) {
return filter.countDataAuthorities() == 0;
......
......@@ -19,6 +19,10 @@ package io.eelo.browser.webview;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
/**
* Authors: Nihar Thakkar and others
*/
class WebChromeClientCompat extends WebChromeClient {
@SuppressWarnings("UnusedParameters")
public void onThemeColorChanged(WebView view, int color) {}
......
......@@ -18,6 +18,10 @@ package io.eelo.browser.webview;
import android.webkit.WebView;
/**
* Authors: Nihar Thakkar and others
*/
public final class WebViewCompat {
private WebViewCompat() {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment