Switching from getSimpleName to hardcoded tag
This commit is contained in:
parent
62f5cda7af
commit
086f915e20
@ -124,7 +124,7 @@ import butterknife.ButterKnife;
|
||||
|
||||
public abstract class BrowserActivity extends ThemableBrowserActivity implements BrowserView, UIController, OnClickListener {
|
||||
|
||||
private static final String TAG = BrowserActivity.class.getSimpleName();
|
||||
private static final String TAG = "BrowserActivity";
|
||||
|
||||
private static final String INTENT_PANIC_TRIGGER = "info.guardianproject.panic.action.TRIGGER";
|
||||
|
||||
|
@ -45,7 +45,7 @@ import butterknife.ButterKnife;
|
||||
|
||||
public class ReadingActivity extends AppCompatActivity {
|
||||
|
||||
private static final String TAG = ReadingActivity.class.getSimpleName();
|
||||
private static final String TAG = "ReadingActivity";
|
||||
|
||||
@BindView(R.id.textViewTitle) TextView mTitle;
|
||||
@BindView(R.id.textViewBody) TextView mBody;
|
||||
|
@ -50,7 +50,8 @@ import acr.browser.lightning.view.LightningView;
|
||||
*/
|
||||
public class TabsManager {
|
||||
|
||||
private static final String TAG = TabsManager.class.getSimpleName();
|
||||
private static final String TAG = "TabsManager";
|
||||
|
||||
private static final String BUNDLE_KEY = "WEBVIEW_";
|
||||
private static final String URL_KEY = "URL_KEY";
|
||||
private static final String BUNDLE_STORAGE = "SAVED_TABS.parcel";
|
||||
|
@ -27,7 +27,7 @@ import acr.browser.lightning.utils.Preconditions;
|
||||
|
||||
public class BrowserApp extends Application {
|
||||
|
||||
private static final String TAG = BrowserApp.class.getSimpleName();
|
||||
private static final String TAG = "BrowserApp";
|
||||
|
||||
@Nullable private static AppComponent sAppComponent;
|
||||
private static final Executor mIOThread = Executors.newSingleThreadExecutor();
|
||||
|
@ -29,7 +29,7 @@ import acr.browser.lightning.view.LightningView;
|
||||
*/
|
||||
public class BrowserPresenter {
|
||||
|
||||
private static final String TAG = BrowserPresenter.class.getSimpleName();
|
||||
private static final String TAG = "BrowserPresenter";
|
||||
|
||||
@NonNull private final TabsManager mTabsModel;
|
||||
@Inject PreferenceManager mPreferences;
|
||||
|
@ -33,7 +33,7 @@ import acr.browser.lightning.utils.Utils;
|
||||
|
||||
public class HistoryPage {
|
||||
|
||||
private static final String TAG = HistoryPage.class.getSimpleName();
|
||||
private static final String TAG = "HistoryPage";
|
||||
|
||||
public static final String FILENAME = "history.html";
|
||||
|
||||
|
@ -19,7 +19,7 @@ import acr.browser.lightning.utils.Utils;
|
||||
|
||||
public class BookmarkLocalSync {
|
||||
|
||||
private static final String TAG = BookmarkLocalSync.class.getSimpleName();
|
||||
private static final String TAG = "BookmarkLocalSync";
|
||||
|
||||
private static final String STOCK_BOOKMARKS_CONTENT = "content://browser/bookmarks";
|
||||
private static final String CHROME_BOOKMARKS_CONTENT = "content://com.android.chrome.browser/bookmarks";
|
||||
|
@ -42,7 +42,7 @@ import acr.browser.lightning.utils.Utils;
|
||||
@Singleton
|
||||
public class BookmarkManager {
|
||||
|
||||
private static final String TAG = BookmarkManager.class.getSimpleName();
|
||||
private static final String TAG = "BookmarkManager";
|
||||
|
||||
private static final String TITLE = "title";
|
||||
private static final String URL = "url";
|
||||
|
@ -39,7 +39,8 @@ import acr.browser.lightning.utils.Utils;
|
||||
*/
|
||||
public class DownloadHandler {
|
||||
|
||||
private static final String TAG = DownloadHandler.class.getSimpleName();
|
||||
private static final String TAG = "DownloadHandler";
|
||||
|
||||
private static final String COOKIE_REQUEST_HEADER = "Cookie";
|
||||
|
||||
public static final String DEFAULT_DOWNLOAD_PATH =
|
||||
|
@ -31,7 +31,7 @@ import acr.browser.lightning.utils.Utils;
|
||||
*/
|
||||
class FetchUrlMimeType extends Thread {
|
||||
|
||||
private static final String TAG = FetchUrlMimeType.class.getSimpleName();
|
||||
private static final String TAG = "FetchUrlMimeType";
|
||||
|
||||
private final Activity mContext;
|
||||
private final DownloadManager.Request mRequest;
|
||||
|
@ -68,7 +68,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
|
||||
return bookmarksFragment;
|
||||
}
|
||||
|
||||
private final static String TAG = BookmarksFragment.class.getSimpleName();
|
||||
private static final String TAG = "BookmarksFragment";
|
||||
|
||||
public final static String INCOGNITO_MODE = TAG + ".INCOGNITO_MODE";
|
||||
|
||||
|
@ -70,7 +70,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
|
||||
return tabsFragment;
|
||||
}
|
||||
|
||||
private static final String TAG = TabsFragment.class.getSimpleName();
|
||||
private static final String TAG = "TabsFragment";
|
||||
|
||||
/**
|
||||
* Arguments boolean to tell the fragment it is displayed in the drawner or on the tab strip
|
||||
|
@ -29,7 +29,7 @@ import okhttp3.Response;
|
||||
|
||||
abstract class BaseSuggestionsModel {
|
||||
|
||||
private static final String TAG = BaseSuggestionsModel.class.getSimpleName();
|
||||
private static final String TAG = "BaseSuggestionsModel";
|
||||
|
||||
static final int MAX_RESULTS = 5;
|
||||
private static final long INTERVAL_DAY = TimeUnit.DAYS.toSeconds(1);
|
||||
|
@ -16,7 +16,7 @@ import java.lang.reflect.Method;
|
||||
|
||||
public class MemoryLeakUtils {
|
||||
|
||||
private static final String TAG = MemoryLeakUtils.class.getSimpleName();
|
||||
private static final String TAG = "MemoryLeakUtils";
|
||||
|
||||
@Nullable private static Method sFinishInputLocked = null;
|
||||
|
||||
|
@ -56,7 +56,7 @@ import acr.browser.lightning.preference.PreferenceManager;
|
||||
|
||||
public final class Utils {
|
||||
|
||||
private static final String TAG = Utils.class.getSimpleName();
|
||||
private static final String TAG = "Utils";
|
||||
|
||||
public static boolean doesSupportHeaders() {
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
|
||||
|
@ -69,7 +69,7 @@ import acr.browser.lightning.utils.Utils;
|
||||
*/
|
||||
public class LightningView {
|
||||
|
||||
private static final String TAG = LightningView.class.getSimpleName();
|
||||
private static final String TAG = "LightningView";
|
||||
|
||||
public static final String HEADER_REQUESTED_WITH = "X-Requested-With";
|
||||
public static final String HEADER_WAP_PROFILE = "X-Wap-Profile";
|
||||
|
Loading…
x
Reference in New Issue
Block a user