mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 10:51:27 +01:00
Use Log.tag where appropriate.
This commit is contained in:
committed by
Alex Hart
parent
2144dc3b67
commit
b053fbc4a7
@@ -29,7 +29,7 @@ import okhttp3.Response;
|
||||
|
||||
public abstract class GiphyLoader extends AsyncLoader<List<GiphyImage>> {
|
||||
|
||||
private static final String TAG = GiphyLoader.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(GiphyLoader.class);
|
||||
|
||||
public static int PAGE_SIZE = 100;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class GiphyActivity extends PassphraseRequiredActivity
|
||||
GiphyAdapter.OnItemClickListener
|
||||
{
|
||||
|
||||
private static final String TAG = GiphyActivity.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(GiphyActivity.class);
|
||||
|
||||
public static final String EXTRA_IS_MMS = "extra_is_mms";
|
||||
public static final String EXTRA_WIDTH = "extra_width";
|
||||
|
||||
@@ -38,7 +38,7 @@ import java.util.concurrent.ExecutionException;
|
||||
|
||||
class GiphyAdapter extends RecyclerView.Adapter<GiphyAdapter.GiphyViewHolder> {
|
||||
|
||||
private static final String TAG = GiphyAdapter.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(GiphyAdapter.class);
|
||||
|
||||
private final Context context;
|
||||
private final GlideRequests glideRequests;
|
||||
|
||||
@@ -17,6 +17,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
|
||||
|
||||
import org.signal.core.util.logging.Log;
|
||||
import org.thoughtcrime.securesms.LoggingFragment;
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.giph.model.GiphyImage;
|
||||
@@ -31,7 +32,7 @@ import java.util.List;
|
||||
|
||||
public abstract class GiphyFragment extends LoggingFragment implements LoaderManager.LoaderCallbacks<List<GiphyImage>>, GiphyAdapter.OnItemClickListener {
|
||||
|
||||
private static final String TAG = GiphyFragment.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(GiphyFragment.class);
|
||||
|
||||
private GiphyAdapter giphyAdapter;
|
||||
private RecyclerView recyclerView;
|
||||
|
||||
@@ -5,9 +5,11 @@ package org.thoughtcrime.securesms.giph.util;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import org.signal.core.util.logging.Log;
|
||||
|
||||
public abstract class InfiniteScrollListener extends RecyclerView.OnScrollListener {
|
||||
|
||||
public static String TAG = InfiniteScrollListener.class.getSimpleName();
|
||||
public static String TAG = Log.tag(InfiniteScrollListener.class);
|
||||
|
||||
private int previousTotal = 0; // The total number of items in the dataset after the last load
|
||||
private boolean loading = true; // True if we are still waiting for the last set of data to load.
|
||||
|
||||
Reference in New Issue
Block a user