From: Soren Stoutner Date: Wed, 28 Sep 2016 23:10:10 +0000 (-0700) Subject: Remove lint errors in non-java files. Fix download dialog when download size is... X-Git-Tag: v1.11~7 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=0abf9642763f1af98af73b2fc3cc44752a342db3;p=PrivacyBrowserAndroid.git Remove lint errors in non-java files. Fix download dialog when download size is unknown. Only apply default font zoom on initial load. --- diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 924d8da8..cff2b258 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,7 +19,8 @@ along with Privacy Browser. If not, see . --> + xmlns:tools="http://schemas.android.com/tools" + package="com.stoutner.privacybrowser" > @@ -38,7 +39,8 @@ android:icon="@mipmap/privacy_browser" android:theme="@style/PrivacyBrowser" android:allowBackup="false" - android:fullBackupContent="false" > + android:fullBackupContent="false" + android:supportsRtl="true" > @@ -49,14 +51,16 @@ + `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. + `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. --> + android:persistableMode="persistNever" + tools:ignore="UnusedAttribute" > @@ -75,7 +79,8 @@ + `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. + `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. --> + android:persistableMode="persistNever" + tools:ignore="UnusedAttribute" /> + `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. + `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. --> + android:persistableMode="persistNever" + tools:ignore="UnusedAttribute" /> + `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. + `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. --> + android:persistableMode="persistNever" + tools:ignore="UnusedAttribute" /> + `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. + `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. --> + android:persistableMode="persistNever" + tools:ignore="UnusedAttribute" /> + `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. + `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. --> + android:persistableMode="persistNever" + tools:ignore="UnusedAttribute" /> diff --git a/app/src/main/java/com/stoutner/privacybrowser/BookmarksActivity.java b/app/src/main/java/com/stoutner/privacybrowser/BookmarksActivity.java index b1d02a16..65d1cfdd 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/BookmarksActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/BookmarksActivity.java @@ -589,7 +589,7 @@ public class BookmarksActivity extends AppCompatActivity implements CreateBookma Snackbar.make(findViewById(R.id.bookmarks_coordinatorlayout), cannotCreateFolder, Snackbar.LENGTH_INDEFINITE).show(); } else { // Create the folder. // Get the new folder icon `Bitmap`. - RadioButton defaultFolderIconRadioButton = (RadioButton) dialogFragment.getDialog().findViewById(R.id.create_folder_default_icon_radiobuttion); + RadioButton defaultFolderIconRadioButton = (RadioButton) dialogFragment.getDialog().findViewById(R.id.create_folder_default_icon_radiobutton); Bitmap folderIconBitmap; if (defaultFolderIconRadioButton.isChecked()) { // Get the default folder icon `ImageView` from the `Dialog` and convert it to a `Bitmap`. @@ -716,11 +716,6 @@ public class BookmarksActivity extends AppCompatActivity implements CreateBookma contextualActionMode.finish(); } - @Override - public void onCancelMoveToFolder(DialogFragment dialogFragment) { - // Do nothing because the user selected `Cancel`. - } - @Override public void onMoveToFolder(DialogFragment dialogFragment) { // Get the new folder database id. diff --git a/app/src/main/java/com/stoutner/privacybrowser/BookmarksDatabaseViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/BookmarksDatabaseViewActivity.java index 9783fb90..a24e6948 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/BookmarksDatabaseViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/BookmarksDatabaseViewActivity.java @@ -38,10 +38,10 @@ import android.widget.TextView; public class BookmarksDatabaseViewActivity extends AppCompatActivity { // `bookmarksDatabaseHandler` is used in `onCreate()` and `updateBookmarksListView()`. - BookmarksDatabaseHandler bookmarksDatabaseHandler; + private BookmarksDatabaseHandler bookmarksDatabaseHandler; // `bookmarksListView` is used in `onCreate()` and `updateBookmarksListView()`. - ListView bookmarksListView; + private ListView bookmarksListView; @Override public void onCreate(Bundle savedInstanceState) { diff --git a/app/src/main/java/com/stoutner/privacybrowser/DownloadFile.java b/app/src/main/java/com/stoutner/privacybrowser/DownloadFile.java index 627335df..d8fabdea 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/DownloadFile.java +++ b/app/src/main/java/com/stoutner/privacybrowser/DownloadFile.java @@ -27,6 +27,7 @@ import android.content.DialogInterface; import android.net.Uri; import android.os.Bundle; // `android.support.v7.app.AlertDialog` uses more of the horizontal screen real estate versus `android.app.AlertDialog's` smaller width. +import android.support.v4.content.ContextCompat; import android.support.v7.app.AlertDialog; import android.view.KeyEvent; import android.view.LayoutInflater; @@ -55,13 +56,10 @@ public class DownloadFile extends DialogFragment { fileNameString = downloadUri.getLastPathSegment(); } - // Convert `contentLength` to MB and store it in `fileSizeString`. `%.3g` displays the three most significant digits. - String fileSizeString = String.format(Locale.getDefault(), "%.3g", (float) contentLength / 1048576) + " MB"; - // Store the variables in the `Bundle`. argumentsBundle.putString("URL", urlString); argumentsBundle.putString("File_Name", fileNameString); - argumentsBundle.putString("File_Size", fileSizeString); + argumentsBundle.putLong("File_Size", contentLength); // Add `argumentsBundle` to this instance of `DownloadFile`. DownloadFile thisDownloadFileDialog = new DownloadFile(); @@ -76,7 +74,16 @@ public class DownloadFile extends DialogFragment { // Store the strings in the local class variables. downloadUrl = getArguments().getString("URL"); downloadFileName = getArguments().getString("File_Name"); - fileSize = getArguments().getString("File_Size"); + + // Get the `File_Size`. + long fileSizeLong = getArguments().getLong("File_Size"); + + // Convert `fileSizeLong` to a String. + if (fileSizeLong == -1) { // We don't know the file size. + fileSize = getString(R.string.unknown_size); + } else { // Convert `fileSize` to MB and store it in `fileSizeString`. `%.3g` displays the three most significant digits. + fileSize = String.format(Locale.getDefault(), "%.3g", (float) fileSizeLong / 1048576) + " MB"; + } } // The public interface is used to send information back to the parent activity. diff --git a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java index 372d2511..104522b6 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java @@ -89,9 +89,6 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation // It is also used in `onCreate()`, `onOptionsItemSelected()`, `onCreateHomeScreenShortcutCreate()`, and `loadUrlFromTextBox()`. public static String formattedUrlString; - // `customHeader` is public static so it can be accessed from `BookmarksActivity`. It is also used in `onCreate()`, `onOptionsItemSelected()`, and `loadUrlFromTextBox()`. - public static Map customHeaders = new HashMap<>(); - // `sslCertificate` is public static so it can be accessed from `ViewSslCertificate`. It is also used in `onCreate()`. public static SslCertificate sslCertificate; @@ -105,6 +102,9 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation // `cookieManager` is used in `onCreate()`, `onOptionsItemSelected()`, and `onNavigationItemSelected()`, and `onRestart()`. private CookieManager cookieManager; + // `customHeader` is used in `onCreate()`, `onOptionsItemSelected()`, and `loadUrlFromTextBox()`. + private final Map customHeaders = new HashMap<>(); + // `javaScriptEnabled` is also used in `onCreate()`, `onCreateOptionsMenu()`, `onOptionsItemSelected()`, `loadUrlFromTextBox()`, and `applySettings()`. // It is `Boolean` instead of `boolean` because `applySettings()` needs to know if it is `null`. private Boolean javaScriptEnabled; @@ -1073,6 +1073,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation cookieManager.setAcceptCookie(firstPartyCookiesEnabled); mainWebView.getSettings().setDomStorageEnabled(domStorageEnabled); mainWebView.getSettings().setSaveFormData(saveFormDataEnabled); + mainWebView.getSettings().setTextZoom(Integer.valueOf(defaultFontSizeString)); // Set third-party cookies status if API >= 21. if (Build.VERSION.SDK_INT >= 21) { @@ -1080,9 +1081,8 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation } } - // Apply the settings from `sharedPreferences`. + // Apply the other settings from `sharedPreferences`. homepage = homepageString; - mainWebView.getSettings().setTextZoom(Integer.valueOf(defaultFontSizeString)); swipeRefreshLayout.setEnabled(swipeToRefreshEnabled); // Set the user agent initial status. diff --git a/app/src/main/java/com/stoutner/privacybrowser/MoveToFolder.java b/app/src/main/java/com/stoutner/privacybrowser/MoveToFolder.java index da2f534d..66e81253 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MoveToFolder.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MoveToFolder.java @@ -48,8 +48,6 @@ import java.io.ByteArrayOutputStream; public class MoveToFolder extends DialogFragment { // The public interface is used to send information back to the parent activity. public interface MoveToFolderListener { - void onCancelMoveToFolder(DialogFragment dialogFragment); - void onMoveToFolder(DialogFragment dialogFragment); } @@ -84,8 +82,7 @@ public class MoveToFolder extends DialogFragment { dialogBuilder.setNegativeButton(R.string.cancel, new Dialog.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { - // Return the `DialogFragment` to the parent activity on cancel. - moveToFolderListener.onCancelMoveToFolder(MoveToFolder.this); + // Do nothing. The `AlertDialog` will close automatically. } }); @@ -244,7 +241,7 @@ public class MoveToFolder extends DialogFragment { return alertDialog; } - public void addSubfoldersToExceptFolders(String folderName) { + private void addSubfoldersToExceptFolders(String folderName) { // Get a `Cursor` will all the immediate subfolders. Cursor subfoldersCursor = BookmarksActivity.bookmarksDatabaseHandler.getSubfoldersCursor(folderName); diff --git a/app/src/main/res/drawable-hdpi/folder_blue_bitmap.png b/app/src/main/res/drawable-hdpi/folder_blue_bitmap.png index 0b5f4911..f652bffb 100644 Binary files a/app/src/main/res/drawable-hdpi/folder_blue_bitmap.png and b/app/src/main/res/drawable-hdpi/folder_blue_bitmap.png differ diff --git a/app/src/main/res/drawable-hdpi/folder_grey_bitmap.png b/app/src/main/res/drawable-hdpi/folder_grey_bitmap.png index cf765019..937fa3a1 100644 Binary files a/app/src/main/res/drawable-hdpi/folder_grey_bitmap.png and b/app/src/main/res/drawable-hdpi/folder_grey_bitmap.png differ diff --git a/app/src/main/res/drawable-hdpi/world.png b/app/src/main/res/drawable-hdpi/world.png index fcfe815f..9ae41db3 100644 Binary files a/app/src/main/res/drawable-hdpi/world.png and b/app/src/main/res/drawable-hdpi/world.png differ diff --git a/app/src/main/res/drawable-xxhdpi/folder_blue_bitmap.png b/app/src/main/res/drawable-xxhdpi/folder_blue_bitmap.png index 8c1be731..73264e08 100644 Binary files a/app/src/main/res/drawable-xxhdpi/folder_blue_bitmap.png and b/app/src/main/res/drawable-xxhdpi/folder_blue_bitmap.png differ diff --git a/app/src/main/res/drawable-xxhdpi/folder_grey_bitmap.png b/app/src/main/res/drawable-xxhdpi/folder_grey_bitmap.png index 4ad866ed..793d53c3 100644 Binary files a/app/src/main/res/drawable-xxhdpi/folder_grey_bitmap.png and b/app/src/main/res/drawable-xxhdpi/folder_grey_bitmap.png differ diff --git a/app/src/main/res/drawable-xxhdpi/world.png b/app/src/main/res/drawable-xxhdpi/world.png index f6faee52..56f7bdde 100644 Binary files a/app/src/main/res/drawable-xxhdpi/world.png and b/app/src/main/res/drawable-xxhdpi/world.png differ diff --git a/app/src/main/res/drawable/about.xml b/app/src/main/res/drawable/about.xml index 32ce26a0..e99f0a81 100644 --- a/app/src/main/res/drawable/about.xml +++ b/app/src/main/res/drawable/about.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/add.xml b/app/src/main/res/drawable/add.xml index 3d1934b0..dbcd5efb 100644 --- a/app/src/main/res/drawable/add.xml +++ b/app/src/main/res/drawable/add.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/back.xml b/app/src/main/res/drawable/back.xml index 7d4bc031..fcba5091 100644 --- a/app/src/main/res/drawable/back.xml +++ b/app/src/main/res/drawable/back.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/bookmarks.xml b/app/src/main/res/drawable/bookmarks.xml index 34213013..40d1c900 100644 --- a/app/src/main/res/drawable/bookmarks.xml +++ b/app/src/main/res/drawable/bookmarks.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/cookies_critical.xml b/app/src/main/res/drawable/cookies_critical.xml deleted file mode 100644 index 5a4812a9..00000000 --- a/app/src/main/res/drawable/cookies_critical.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/cookies_disabled.xml b/app/src/main/res/drawable/cookies_disabled.xml index 0e6dc4fa..aa49aa04 100644 --- a/app/src/main/res/drawable/cookies_disabled.xml +++ b/app/src/main/res/drawable/cookies_disabled.xml @@ -1,15 +1,18 @@ + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/cookies_enabled.xml b/app/src/main/res/drawable/cookies_enabled.xml index 3d4ca673..cb954a89 100644 --- a/app/src/main/res/drawable/cookies_enabled.xml +++ b/app/src/main/res/drawable/cookies_enabled.xml @@ -1,15 +1,18 @@ + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/create_folder.xml b/app/src/main/res/drawable/create_folder.xml index cfc810df..77bed7ac 100644 --- a/app/src/main/res/drawable/create_folder.xml +++ b/app/src/main/res/drawable/create_folder.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/delete.xml b/app/src/main/res/drawable/delete.xml index 00d6fef4..2b74311a 100644 --- a/app/src/main/res/drawable/delete.xml +++ b/app/src/main/res/drawable/delete.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/dom_storage_disabled.xml b/app/src/main/res/drawable/dom_storage_disabled.xml index 9541cc62..0c1264cb 100644 --- a/app/src/main/res/drawable/dom_storage_disabled.xml +++ b/app/src/main/res/drawable/dom_storage_disabled.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/dom_storage_enabled.xml b/app/src/main/res/drawable/dom_storage_enabled.xml index bc71681d..66e3cd6e 100644 --- a/app/src/main/res/drawable/dom_storage_enabled.xml +++ b/app/src/main/res/drawable/dom_storage_enabled.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/dom_storage_ghosted.xml b/app/src/main/res/drawable/dom_storage_ghosted.xml index 9a338ece..85f411db 100644 --- a/app/src/main/res/drawable/dom_storage_ghosted.xml +++ b/app/src/main/res/drawable/dom_storage_ghosted.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster"> - + diff --git a/app/src/main/res/drawable/downloads.xml b/app/src/main/res/drawable/downloads.xml index d985eff5..80fed0f3 100644 --- a/app/src/main/res/drawable/downloads.xml +++ b/app/src/main/res/drawable/downloads.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/edit.xml b/app/src/main/res/drawable/edit.xml index 26e890cd..931ff660 100644 --- a/app/src/main/res/drawable/edit.xml +++ b/app/src/main/res/drawable/edit.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/exit.xml b/app/src/main/res/drawable/exit.xml index a74375c3..b8d6e676 100644 --- a/app/src/main/res/drawable/exit.xml +++ b/app/src/main/res/drawable/exit.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/folder_dark_blue.xml b/app/src/main/res/drawable/folder_dark_blue.xml index ebb3c8ad..4f2284de 100644 --- a/app/src/main/res/drawable/folder_dark_blue.xml +++ b/app/src/main/res/drawable/folder_dark_blue.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/folder_grey.xml b/app/src/main/res/drawable/folder_grey.xml index 9bf91cb3..2527140e 100644 --- a/app/src/main/res/drawable/folder_grey.xml +++ b/app/src/main/res/drawable/folder_grey.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/form_data_disabled.xml b/app/src/main/res/drawable/form_data_disabled.xml index 804e5453..b7226db6 100644 --- a/app/src/main/res/drawable/form_data_disabled.xml +++ b/app/src/main/res/drawable/form_data_disabled.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster"> - + diff --git a/app/src/main/res/drawable/form_data_enabled.xml b/app/src/main/res/drawable/form_data_enabled.xml index a34dadeb..45142524 100644 --- a/app/src/main/res/drawable/form_data_enabled.xml +++ b/app/src/main/res/drawable/form_data_enabled.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster"> - + diff --git a/app/src/main/res/drawable/forward.xml b/app/src/main/res/drawable/forward.xml index d10357f6..b45f8ac8 100644 --- a/app/src/main/res/drawable/forward.xml +++ b/app/src/main/res/drawable/forward.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/guide.xml b/app/src/main/res/drawable/guide.xml index cb2c2e88..144a4570 100644 --- a/app/src/main/res/drawable/guide.xml +++ b/app/src/main/res/drawable/guide.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:viewportWidth="24.0" + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/home.xml b/app/src/main/res/drawable/home.xml index cb6f8571..300bffcf 100644 --- a/app/src/main/res/drawable/home.xml +++ b/app/src/main/res/drawable/home.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/javascript_enabled.xml b/app/src/main/res/drawable/javascript_enabled.xml index 2280c51e..e02a9328 100644 --- a/app/src/main/res/drawable/javascript_enabled.xml +++ b/app/src/main/res/drawable/javascript_enabled.xml @@ -1,5 +1,6 @@ + They are released under the Apache License 2.0. Modifications were made by Soren Stoutner in 2016 + and are released under the GPLv3+ license. --> - + + android:pathData="m128,12.8 l-94.25,41.89 0,62.84c0,58.12 40.22,112.48 94.25,125.67 54.04,-13.2 94.25,-67.55 94.25,-125.67l0,-62.84z" + android:strokeColor="#00000000" /> - + + android:pathData="m128,0 l-104.73,46.55 0,69.82C23.27,180.95 67.96,241.34 128,256 188.04,241.34 232.73,180.95 232.73,116.36l0,-69.82L128,0ZM128,127.88 L209.45,127.88C203.29,175.83 171.29,218.53 128,231.91l0,-103.91 -81.45,0 0,-66.33L128,25.48l0,102.4z" + android:strokeColor="#00000000" /> - + . --> + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/move_bookmark_down_enabled.xml b/app/src/main/res/drawable/move_bookmark_down_enabled.xml index 70d82b84..a8199481 100644 --- a/app/src/main/res/drawable/move_bookmark_down_enabled.xml +++ b/app/src/main/res/drawable/move_bookmark_down_enabled.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/move_bookmark_up_disabled.xml b/app/src/main/res/drawable/move_bookmark_up_disabled.xml index a610b6d6..fb6a4573 100644 --- a/app/src/main/res/drawable/move_bookmark_up_disabled.xml +++ b/app/src/main/res/drawable/move_bookmark_up_disabled.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/move_bookmark_up_enabled.xml b/app/src/main/res/drawable/move_bookmark_up_enabled.xml index 80966186..d74ef364 100644 --- a/app/src/main/res/drawable/move_bookmark_up_enabled.xml +++ b/app/src/main/res/drawable/move_bookmark_up_enabled.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/move_to_folder.xml b/app/src/main/res/drawable/move_to_folder.xml index 67a3adb9..dd3c4ce6 100644 --- a/app/src/main/res/drawable/move_to_folder.xml +++ b/app/src/main/res/drawable/move_to_folder.xml @@ -1,15 +1,18 @@ + It is released under the Apache License 2.0. --> + + android:viewportWidth="24.0" + android:autoMirrored="true" + tools:ignore="VectorRaster" > - + diff --git a/app/src/main/res/drawable/privacy_mode.xml b/app/src/main/res/drawable/privacy_mode.xml index 79bdf144..c1584f71 100644 --- a/app/src/main/res/drawable/privacy_mode.xml +++ b/app/src/main/res/drawable/privacy_mode.xml @@ -1,5 +1,6 @@ + They are released under the Apache License 2.0. Modifications were made by Soren Stoutner in 2016. + and are released under the GPLv3+ license. --> - + + android:pathData="m128,12.8 l-94.25,41.89 0,62.84c0,58.12 40.22,112.48 94.25,125.67 54.04,-13.2 94.25,-67.55 94.25,-125.67l0,-62.84z" + android:strokeColor="#00000000" /> - + + android:pathData="m128,0 l-104.73,46.55 0,69.82C23.27,180.95 67.96,241.34 128,256 188.04,241.34 232.73,180.95 232.73,116.36l0,-69.82L128,0ZM128,127.88 L209.45,127.88C203.29,175.83 171.29,218.53 128,231.91l0,-103.91 -81.45,0 0,-66.33L128,25.48l0,102.4z" + android:strokeColor="#00000000" /> - + . --> + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/settings.xml b/app/src/main/res/drawable/settings.xml index ece63010..f267c6a4 100644 --- a/app/src/main/res/drawable/settings.xml +++ b/app/src/main/res/drawable/settings.xml @@ -1,5 +1,5 @@ + It is released under the Apache License 2.0. --> - + diff --git a/app/src/main/res/drawable/warning.xml b/app/src/main/res/drawable/warning.xml index 636ff113..463aa30c 100644 --- a/app/src/main/res/drawable/warning.xml +++ b/app/src/main/res/drawable/warning.xml @@ -1,5 +1,6 @@ + They are released under the Apache License 2.0. Modifications were made by Soren Stoutner in 2016. + and are released under the GPLv3+ license. --> - + + android:pathData="m128,12.8 l-94.25,41.89 0,62.84c0,58.12 40.22,112.48 94.25,125.67 54.04,-13.2 94.25,-67.55 94.25,-125.67l0,-62.84z" + android:strokeColor="#00000000" /> - + + android:pathData="m128,0 l-104.73,46.55 0,69.82C23.27,180.95 67.96,241.34 128,256 188.04,241.34 232.73,180.95 232.73,116.36l0,-69.82L128,0ZM128,127.88 L209.45,127.88C203.29,175.83 171.29,218.53 128,231.91l0,-103.91 -81.45,0 0,-66.33L128,25.48l0,102.4z" + android:strokeColor="#00000000" /> - + + android:maxLines="1" /> @@ -94,7 +94,7 @@ android:textColor="@color/black" android:textSize="22sp" android:textStyle="italic" - android:singleLine="true" /> + android:maxLines="1" /> @@ -107,5 +107,5 @@ android:layout_marginEnd="10dp" android:textColor="@color/black" android:textSize="22sp" - android:singleLine="true" /> + android:maxLines="1" /> \ No newline at end of file diff --git a/app/src/main/res/layout/bookmarks_item_linearlayout.xml b/app/src/main/res/layout/bookmarks_item_linearlayout.xml index cbb12038..a30fde52 100644 --- a/app/src/main/res/layout/bookmarks_item_linearlayout.xml +++ b/app/src/main/res/layout/bookmarks_item_linearlayout.xml @@ -42,5 +42,5 @@ android:textColor="@color/black" android:textSize="22sp" android:layout_margin="10dp" - android:singleLine="true" /> + android:maxLines="1" /> \ No newline at end of file diff --git a/app/src/main/res/layout/create_bookmark_folder_dialog.xml b/app/src/main/res/layout/create_bookmark_folder_dialog.xml index 58bb4051..4233839a 100644 --- a/app/src/main/res/layout/create_bookmark_folder_dialog.xml +++ b/app/src/main/res/layout/create_bookmark_folder_dialog.xml @@ -66,10 +66,10 @@ android:id="@+id/create_folder_radiogroup" android:layout_width="match_parent" android:layout_height="wrap_content" - android:checkedButton="@+id/create_folder_default_icon_radiobuttion"> + android:checkedButton="@+id/create_folder_default_icon_radiobutton"> \ No newline at end of file diff --git a/app/src/main/res/layout/url_bar.xml b/app/src/main/res/layout/url_bar.xml index 74214670..afe8651c 100644 --- a/app/src/main/res/layout/url_bar.xml +++ b/app/src/main/res/layout/url_bar.xml @@ -20,6 +20,7 @@ + android:layout_height="2dp" works best for API 23 "Marshmallow", but "3dp" is required for visibility on API <= 22. + `tools:ignore="UnusedAttribute"` removes the lint waring about `progressTint` and `progressBackgroundTint` + not applying to API < 21.--> + android:visibility="gone" + tools:ignore="UnusedAttribute" /> \ No newline at end of file diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index f61cffc2..110a1d9d 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -30,7 +30,6 @@ de - Download gestartet Privatsphäre-Modus JavaScript aktiviert JavaScript deaktiviert @@ -46,6 +45,8 @@ DOM-Speicher gelöscht Navigationspanel öffnen Navigationspanel schließen + + Speichern unter Dateiname Download diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 51886aad..720173e7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -29,7 +29,6 @@ en - Download started Privacy Mode JavaScript enabled JavaScript disabled @@ -45,8 +44,11 @@ DOM Storage deleted Open Navigation Drawer Close Navigation Drawer + + Save as File name + unknown size Download