X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Factivities%2FBookmarksActivity.kt;h=99d3f5395ff0ca926c32ad4ff64b71088dbcbbef;hp=43350b1111f5d9d2c19c6bc8faee844566da2773;hb=d144cd84730c45364ce6b915061a792a994daf2e;hpb=dc36dea65a4eb37496fb1ecbbd9f8e1906f50216 diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/BookmarksActivity.kt b/app/src/main/java/com/stoutner/privacybrowser/activities/BookmarksActivity.kt index 43350b11..99d3f539 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/BookmarksActivity.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/BookmarksActivity.kt @@ -127,16 +127,6 @@ class BookmarksActivity : AppCompatActivity(), CreateBookmarkListener, CreateBoo val currentUrl = launchingIntent.getStringExtra(CURRENT_URL)!! currentFavoriteIconByteArray = launchingIntent.getByteArrayExtra(CURRENT_FAVORITE_ICON_BYTE_ARRAY)!! - /* TODO. Test if not needed. - // Set the current folder variable. - if (launchingIntent.getStringExtra(CURRENT_FOLDER) != null) { // Set the current folder from the intent. - currentFolder = launchingIntent.getStringExtra(CURRENT_FOLDER) - } else { // Set the current folder to be `""`, which is the home folder. - currentFolder = "" - } - - */ - // Convert the favorite icon byte array to a bitmap. val currentFavoriteIconBitmap = BitmapFactory.decodeByteArray(currentFavoriteIconByteArray, 0, currentFavoriteIconByteArray.size) @@ -829,7 +819,7 @@ class BookmarksActivity : AppCompatActivity(), CreateBookmarkListener, CreateBoo if (currentFolderIconRadioButton.isChecked) { // Only the name has changed. // Update the name in the database. bookmarksDatabaseHelper.updateFolder(selectedFolderDatabaseId, oldFolderNameString, newFolderNameString) - } else { // The icon has changed. TODO: Test. + } else { // The icon has changed. // Populate the new folder icon bitmap. val folderIconBitmap: Bitmap = if (defaultFolderIconRadioButton.isChecked) { // Get the default folder icon drawable.