Browse Source

Switching from getSimpleName to hardcoded tag

master
anthony restaino 8 years ago
parent
commit
086f915e20
  1. 2
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 2
      app/src/main/java/acr/browser/lightning/activity/ReadingActivity.java
  3. 3
      app/src/main/java/acr/browser/lightning/activity/TabsManager.java
  4. 2
      app/src/main/java/acr/browser/lightning/app/BrowserApp.java
  5. 2
      app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java
  6. 2
      app/src/main/java/acr/browser/lightning/constant/HistoryPage.java
  7. 2
      app/src/main/java/acr/browser/lightning/database/BookmarkLocalSync.java
  8. 2
      app/src/main/java/acr/browser/lightning/database/BookmarkManager.java
  9. 3
      app/src/main/java/acr/browser/lightning/download/DownloadHandler.java
  10. 2
      app/src/main/java/acr/browser/lightning/download/FetchUrlMimeType.java
  11. 2
      app/src/main/java/acr/browser/lightning/fragment/BookmarksFragment.java
  12. 2
      app/src/main/java/acr/browser/lightning/fragment/TabsFragment.java
  13. 2
      app/src/main/java/acr/browser/lightning/search/BaseSuggestionsModel.java
  14. 2
      app/src/main/java/acr/browser/lightning/utils/MemoryLeakUtils.java
  15. 2
      app/src/main/java/acr/browser/lightning/utils/Utils.java
  16. 2
      app/src/main/java/acr/browser/lightning/view/LightningView.java

2
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -124,7 +124,7 @@ import butterknife.ButterKnife;
public abstract class BrowserActivity extends ThemableBrowserActivity implements BrowserView, UIController, OnClickListener { 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"; private static final String INTENT_PANIC_TRIGGER = "info.guardianproject.panic.action.TRIGGER";

2
app/src/main/java/acr/browser/lightning/activity/ReadingActivity.java

@ -45,7 +45,7 @@ import butterknife.ButterKnife;
public class ReadingActivity extends AppCompatActivity { 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.textViewTitle) TextView mTitle;
@BindView(R.id.textViewBody) TextView mBody; @BindView(R.id.textViewBody) TextView mBody;

3
app/src/main/java/acr/browser/lightning/activity/TabsManager.java

@ -50,7 +50,8 @@ import acr.browser.lightning.view.LightningView;
*/ */
public class TabsManager { 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 BUNDLE_KEY = "WEBVIEW_";
private static final String URL_KEY = "URL_KEY"; private static final String URL_KEY = "URL_KEY";
private static final String BUNDLE_STORAGE = "SAVED_TABS.parcel"; private static final String BUNDLE_STORAGE = "SAVED_TABS.parcel";

2
app/src/main/java/acr/browser/lightning/app/BrowserApp.java

@ -27,7 +27,7 @@ import acr.browser.lightning.utils.Preconditions;
public class BrowserApp extends Application { public class BrowserApp extends Application {
private static final String TAG = BrowserApp.class.getSimpleName(); private static final String TAG = "BrowserApp";
@Nullable private static AppComponent sAppComponent; @Nullable private static AppComponent sAppComponent;
private static final Executor mIOThread = Executors.newSingleThreadExecutor(); private static final Executor mIOThread = Executors.newSingleThreadExecutor();

2
app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java

@ -29,7 +29,7 @@ import acr.browser.lightning.view.LightningView;
*/ */
public class BrowserPresenter { public class BrowserPresenter {
private static final String TAG = BrowserPresenter.class.getSimpleName(); private static final String TAG = "BrowserPresenter";
@NonNull private final TabsManager mTabsModel; @NonNull private final TabsManager mTabsModel;
@Inject PreferenceManager mPreferences; @Inject PreferenceManager mPreferences;

2
app/src/main/java/acr/browser/lightning/constant/HistoryPage.java

@ -33,7 +33,7 @@ import acr.browser.lightning.utils.Utils;
public class HistoryPage { public class HistoryPage {
private static final String TAG = HistoryPage.class.getSimpleName(); private static final String TAG = "HistoryPage";
public static final String FILENAME = "history.html"; public static final String FILENAME = "history.html";

2
app/src/main/java/acr/browser/lightning/database/BookmarkLocalSync.java

@ -19,7 +19,7 @@ import acr.browser.lightning.utils.Utils;
public class BookmarkLocalSync { 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 STOCK_BOOKMARKS_CONTENT = "content://browser/bookmarks";
private static final String CHROME_BOOKMARKS_CONTENT = "content://com.android.chrome.browser/bookmarks"; private static final String CHROME_BOOKMARKS_CONTENT = "content://com.android.chrome.browser/bookmarks";

2
app/src/main/java/acr/browser/lightning/database/BookmarkManager.java

@ -42,7 +42,7 @@ import acr.browser.lightning.utils.Utils;
@Singleton @Singleton
public class BookmarkManager { 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 TITLE = "title";
private static final String URL = "url"; private static final String URL = "url";

3
app/src/main/java/acr/browser/lightning/download/DownloadHandler.java

@ -39,7 +39,8 @@ import acr.browser.lightning.utils.Utils;
*/ */
public class DownloadHandler { 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"; private static final String COOKIE_REQUEST_HEADER = "Cookie";
public static final String DEFAULT_DOWNLOAD_PATH = public static final String DEFAULT_DOWNLOAD_PATH =

2
app/src/main/java/acr/browser/lightning/download/FetchUrlMimeType.java

@ -31,7 +31,7 @@ import acr.browser.lightning.utils.Utils;
*/ */
class FetchUrlMimeType extends Thread { class FetchUrlMimeType extends Thread {
private static final String TAG = FetchUrlMimeType.class.getSimpleName(); private static final String TAG = "FetchUrlMimeType";
private final Activity mContext; private final Activity mContext;
private final DownloadManager.Request mRequest; private final DownloadManager.Request mRequest;

2
app/src/main/java/acr/browser/lightning/fragment/BookmarksFragment.java

@ -68,7 +68,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
return bookmarksFragment; 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"; public final static String INCOGNITO_MODE = TAG + ".INCOGNITO_MODE";

2
app/src/main/java/acr/browser/lightning/fragment/TabsFragment.java

@ -70,7 +70,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
return tabsFragment; 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 * Arguments boolean to tell the fragment it is displayed in the drawner or on the tab strip

2
app/src/main/java/acr/browser/lightning/search/BaseSuggestionsModel.java

@ -29,7 +29,7 @@ import okhttp3.Response;
abstract class BaseSuggestionsModel { abstract class BaseSuggestionsModel {
private static final String TAG = BaseSuggestionsModel.class.getSimpleName(); private static final String TAG = "BaseSuggestionsModel";
static final int MAX_RESULTS = 5; static final int MAX_RESULTS = 5;
private static final long INTERVAL_DAY = TimeUnit.DAYS.toSeconds(1); private static final long INTERVAL_DAY = TimeUnit.DAYS.toSeconds(1);

2
app/src/main/java/acr/browser/lightning/utils/MemoryLeakUtils.java

@ -16,7 +16,7 @@ import java.lang.reflect.Method;
public class MemoryLeakUtils { public class MemoryLeakUtils {
private static final String TAG = MemoryLeakUtils.class.getSimpleName(); private static final String TAG = "MemoryLeakUtils";
@Nullable private static Method sFinishInputLocked = null; @Nullable private static Method sFinishInputLocked = null;

2
app/src/main/java/acr/browser/lightning/utils/Utils.java

@ -56,7 +56,7 @@ import acr.browser.lightning.preference.PreferenceManager;
public final class Utils { public final class Utils {
private static final String TAG = Utils.class.getSimpleName(); private static final String TAG = "Utils";
public static boolean doesSupportHeaders() { public static boolean doesSupportHeaders() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;

2
app/src/main/java/acr/browser/lightning/view/LightningView.java

@ -69,7 +69,7 @@ import acr.browser.lightning.utils.Utils;
*/ */
public class LightningView { 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_REQUESTED_WITH = "X-Requested-With";
public static final String HEADER_WAP_PROFILE = "X-Wap-Profile"; public static final String HEADER_WAP_PROFILE = "X-Wap-Profile";

Loading…
Cancel
Save