Browse Source

Cleaning up lint

master
anthony restaino 8 years ago
parent
commit
8a66a3f188
  1. 2
      app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java
  2. 2
      app/src/main/java/acr/browser/lightning/fragment/BookmarksFragment.java
  3. 4
      app/src/main/java/acr/browser/lightning/fragment/TabsFragment.java
  4. 2
      app/src/main/java/acr/browser/lightning/search/SuggestionsAdapter.java
  5. 2
      app/src/main/res/layout/tab_list_item.xml
  6. 2
      app/src/main/res/layout/tab_list_item_horizontal.xml
  7. 1
      app/src/main/res/values-nl/strings.xml
  8. 1
      app/src/main/res/values-pt-rBR/strings.xml

2
app/src/main/java/acr/browser/lightning/dialog/LightningDialogBuilder.java

@ -45,7 +45,7 @@ import acr.browser.lightning.utils.Utils;
* Created by Stefano Pacifici on 02/09/15, based on Anthony C. Restaino's code. * Created by Stefano Pacifici on 02/09/15, based on Anthony C. Restaino's code.
*/ */
public class LightningDialogBuilder { public class LightningDialogBuilder {
public static final String TAG = "LightningDialogBuilder"; private static final String TAG = "LightningDialogBuilder";
public enum NewTab { public enum NewTab {
FOREGROUND, FOREGROUND,

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

@ -67,7 +67,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
private static final String TAG = "BookmarksFragment"; private static final String TAG = "BookmarksFragment";
public final static String INCOGNITO_MODE = TAG + ".INCOGNITO_MODE"; private final static String INCOGNITO_MODE = TAG + ".INCOGNITO_MODE";
// Managers // Managers
@Inject BookmarkModel mBookmarkManager; @Inject BookmarkModel mBookmarkManager;

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

@ -76,8 +76,8 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
* 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
* If true, the fragment is in the left drawner in the strip otherwise. * If true, the fragment is in the left drawner in the strip otherwise.
*/ */
public static final String VERTICAL_MODE = TAG + ".VERTICAL_MODE"; private static final String VERTICAL_MODE = TAG + ".VERTICAL_MODE";
public static final String IS_INCOGNITO = TAG + ".IS_INCOGNITO"; private static final String IS_INCOGNITO = TAG + ".IS_INCOGNITO";
private boolean mIsIncognito, mDarkTheme; private boolean mIsIncognito, mDarkTheme;
private int mIconColor; private int mIconColor;

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

@ -49,7 +49,7 @@ public class SuggestionsAdapter extends BaseAdapter implements Filterable {
private static final Scheduler FILTER_SCHEDULER = Schedulers.newSingleThreadedScheduler(); private static final Scheduler FILTER_SCHEDULER = Schedulers.newSingleThreadedScheduler();
static final String CACHE_FILE_TYPE = ".sgg"; private static final String CACHE_FILE_TYPE = ".sgg";
private final List<HistoryItem> mFilteredList = new ArrayList<>(5); private final List<HistoryItem> mFilteredList = new ArrayList<>(5);

2
app/src/main/res/layout/tab_list_item.xml

@ -48,7 +48,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:contentDescription="Delete Tab" android:contentDescription="@string/close_tab"
app:srcCompat="@drawable/ic_action_delete"/> app:srcCompat="@drawable/ic_action_delete"/>
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>

2
app/src/main/res/layout/tab_list_item_horizontal.xml

@ -47,7 +47,7 @@
android:layout_width="20dp" android:layout_width="20dp"
android:layout_height="20dp" android:layout_height="20dp"
android:layout_gravity="center" android:layout_gravity="center"
android:contentDescription="Delete Tab" android:contentDescription="@string/close_tab"
app:srcCompat="@drawable/ic_action_delete"/> app:srcCompat="@drawable/ic_action_delete"/>
</FrameLayout> </FrameLayout>

1
app/src/main/res/values-nl/strings.xml

@ -144,7 +144,6 @@
<string name="title_sign_in">Inloggen</string> <string name="title_sign_in">Inloggen</string>
<string name="hint_username">Gebruiksnaam</string> <string name="hint_username">Gebruiksnaam</string>
<string name="hint_password">Paswoord</string> <string name="hint_password">Paswoord</string>
<string name="google_suggestions">Zoeksuggesties</string>
<string name="powered_by_google">Ondersteund door Google</string> <string name="powered_by_google">Ondersteund door Google</string>
<string name="http_proxy">HTTP Proxy</string> <string name="http_proxy">HTTP Proxy</string>
<string-array name="proxy_choices_array"> <string-array name="proxy_choices_array">

1
app/src/main/res/values-pt-rBR/strings.xml

@ -131,7 +131,6 @@
<string name="title_sign_in">Iniciar sessão</string> <string name="title_sign_in">Iniciar sessão</string>
<string name="hint_username">Usuário</string> <string name="hint_username">Usuário</string>
<string name="hint_password">Senha</string> <string name="hint_password">Senha</string>
<string name="google_suggestions">Sugestões de pesquisa</string>
<string name="powered_by_google">Disponibilizado por Google</string> <string name="powered_by_google">Disponibilizado por Google</string>
<string name="http_proxy">Proxy HTTP</string> <string name="http_proxy">Proxy HTTP</string>
<string-array name="proxy_choices_array"> <string-array name="proxy_choices_array">

Loading…
Cancel
Save