diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt index 0391243dd..722df3b44 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt @@ -22,7 +22,6 @@ import android.app.Activity import android.app.DatePickerDialog import android.app.SearchManager import android.app.TimePickerDialog -import android.content.ComponentName import android.content.Context import android.content.Intent import android.graphics.PorterDuff @@ -41,7 +40,6 @@ import androidx.appcompat.view.ActionMode import androidx.appcompat.widget.SearchView import androidx.appcompat.widget.Toolbar import androidx.coordinatorlayout.widget.CoordinatorLayout -import androidx.core.view.isVisible import androidx.recyclerview.widget.RecyclerView import com.kunzisoft.keepass.R import com.kunzisoft.keepass.activities.dialogs.* @@ -50,7 +48,6 @@ import com.kunzisoft.keepass.activities.helpers.EntrySelectionHelper import com.kunzisoft.keepass.activities.helpers.SpecialMode import com.kunzisoft.keepass.activities.legacy.DatabaseLockActivity import com.kunzisoft.keepass.adapters.BreadcrumbAdapter -import com.kunzisoft.keepass.adapters.SearchEntryCursorAdapter import com.kunzisoft.keepass.autofill.AutofillComponent import com.kunzisoft.keepass.autofill.AutofillHelper import com.kunzisoft.keepass.database.element.* @@ -94,9 +91,8 @@ class GroupActivity : DatabaseLockActivity(), private var databaseNameView: TextView? = null private var searchContainer: ViewGroup? = null private var searchNumbers: TextView? = null - private var searchString: TextView? = null + private var searchView: SearchView? = null private var toolbarBreadcrumb: Toolbar? = null - private var searchTitleView: View? = null private var toolbarAction: ToolbarAction? = null private var numberChildrenView: TextView? = null private var addNodeButtonView: AddNodeButtonView? = null @@ -119,11 +115,34 @@ class GroupActivity : DatabaseLockActivity(), private var mCurrentGroupState: GroupState? = null private var mRootGroup: Group? = null private var mCurrentGroup: Group? = null + private var mSearchGroup: Group? = null private var mPreviousGroupsIds = mutableListOf() private var mOldGroupToUpdate: Group? = null - private var mSearchSuggestionAdapter: SearchEntryCursorAdapter? = null - private var mOnSuggestionListener: SearchView.OnSuggestionListener? = null + private val mOnSearchActionExpandListener = object : MenuItem.OnActionExpandListener { + override fun onMenuItemActionExpand(p0: MenuItem?): Boolean { + searchContainer?.visibility = View.VISIBLE + return true + } + + override fun onMenuItemActionCollapse(p0: MenuItem?): Boolean { + searchContainer?.visibility = View.GONE + mSearchGroup = null + loadGroup(mDatabase) + return true + } + } + private val mOnSearchQueryTextListener = object : SearchView.OnQueryTextListener { + override fun onQueryTextSubmit(query: String?): Boolean { + loadSearchGroup(query) + return true + } + + override fun onQueryTextChange(newText: String?): Boolean { + loadSearchGroup(newText) + return true + } + } private var mIconSelectionActivityResultLauncher = IconPickerActivity.registerIconSelectionForResult(this) { icon -> // To create tree dialog for icon @@ -152,9 +171,7 @@ class GroupActivity : DatabaseLockActivity(), databaseNameView = findViewById(R.id.database_name) searchContainer = findViewById(R.id.search_container) searchNumbers = findViewById(R.id.search_numbers) - searchString = findViewById(R.id.search_string) toolbarBreadcrumb = findViewById(R.id.toolbar_breadcrumb) - searchTitleView = findViewById(R.id.search_title) breadcrumbListView = findViewById(R.id.breadcrumb_list) toolbarAction = findViewById(R.id.toolbar_action) lockView = findViewById(R.id.lock_button) @@ -247,11 +264,11 @@ class GroupActivity : DatabaseLockActivity(), // Observe group mGroupViewModel.group.observe(this) { val currentGroup = it.group - - mCurrentGroup = currentGroup - mRecyclingBinIsCurrentGroup = it.isRecycleBin - if (!currentGroup.isVirtual) { + + mCurrentGroup = currentGroup + mRecyclingBinIsCurrentGroup = it.isRecycleBin + // Save group id if real group mCurrentGroupState = GroupState(currentGroup.nodeId, it.showFromPosition) @@ -325,6 +342,8 @@ class GroupActivity : DatabaseLockActivity(), ) } } + } else { + mSearchGroup = currentGroup } loadingView?.hideByFading() @@ -424,22 +443,7 @@ class GroupActivity : DatabaseLockActivity(), } else { databaseColorView?.visibility = View.GONE } - mSearchSuggestionAdapter = SearchEntryCursorAdapter(this, it) mBreadcrumbAdapter?.iconDrawableFactory = it.iconDrawableFactory - mOnSuggestionListener = object : SearchView.OnSuggestionListener { - override fun onSuggestionClick(position: Int): Boolean { - mSearchSuggestionAdapter?.let { searchAdapter -> - searchAdapter.getEntryFromPosition(position)?.let { entry -> - onNodeClick(database, entry) - } - } - return true - } - - override fun onSuggestionSelect(position: Int): Boolean { - return true - } - } } invalidateOptionsMenu() @@ -566,36 +570,27 @@ class GroupActivity : DatabaseLockActivity(), } override fun onGroupRefreshed() { - mCurrentGroup?.let { currentGroup -> - assignGroupViewElements(currentGroup) + if (mSearchGroup != null) { + assignGroupViewElements(mSearchGroup) + } else { + assignGroupViewElements(mCurrentGroup) } } private fun assignGroupViewElements(group: Group?) { + // TODO in real time // Assign title if (group?.isVirtual == true) { - searchContainer?.visibility = View.VISIBLE - val title = group.title - searchString?.text = if (title.isNotEmpty()) title else "" searchNumbers?.text = group.numberOfChildEntries.toString() databaseNameContainer?.visibility = View.GONE toolbarBreadcrumb?.navigationIcon = null - toolbarBreadcrumb?.collapse() } else { - searchContainer?.visibility = View.GONE databaseNameContainer?.visibility = View.VISIBLE - // Refresh breadcrumb - if (toolbarBreadcrumb?.isVisible != true) { - toolbarBreadcrumb?.expand { - setBreadcrumbNode(group) - } - } else { - // Add breadcrumb - setBreadcrumbNode(group) - } + // Add breadcrumb + setBreadcrumbNode(group) + invalidateOptionsMenu() } initAddButton(group) - invalidateOptionsMenu() } private fun setBreadcrumbNode(group: Group?) { @@ -950,8 +945,6 @@ class GroupActivity : DatabaseLockActivity(), } else { View.GONE } - // Refresh suggestions to change preferences - mSearchSuggestionAdapter?.reInit(this) // Padding if lock button visible toolbarAction?.updateLockPaddingLeft() } @@ -987,19 +980,21 @@ class GroupActivity : DatabaseLockActivity(), } // Get the SearchView and set the searchable configuration - val searchManager = getSystemService(Context.SEARCH_SERVICE) as SearchManager? - menu.findItem(R.id.menu_search)?.let { - val searchView = it.actionView as SearchView? + it.setOnActionExpandListener(mOnSearchActionExpandListener) + searchView = it.actionView as SearchView? searchView?.apply { + /* + val searchManager = getSystemService(Context.SEARCH_SERVICE) as SearchManager? (searchManager?.getSearchableInfo( ComponentName(this@GroupActivity, GroupActivity::class.java) ))?.let { searchableInfo -> setSearchableInfo(searchableInfo) } - setIconifiedByDefault(false) // Do not iconify the widget; expand it by default - suggestionsAdapter = mSearchSuggestionAdapter - setOnSuggestionListener(mOnSuggestionListener) + + */ + isIconified = false + setOnQueryTextListener(mOnSearchQueryTextListener) } // Expand the search view if defined in settings if (mRequestStartupSearch @@ -1024,6 +1019,16 @@ class GroupActivity : DatabaseLockActivity(), return true } + private fun loadSearchGroup(query: String?) { + if (query != null && query.isNotEmpty()) { + mGroupViewModel.loadGroupFromSearch( + mDatabase, + query, + PreferencesUtil.omitBackup(this) + ) + } + } + private fun performedNextEducation( groupActivityEducation: GroupActivityEducation, menu: Menu @@ -1092,7 +1097,6 @@ class GroupActivity : DatabaseLockActivity(), return true } R.id.menu_search -> { - //onSearchRequested() return true } R.id.menu_save_database -> { diff --git a/app/src/main/java/com/kunzisoft/keepass/adapters/SearchEntryCursorAdapter.kt b/app/src/main/java/com/kunzisoft/keepass/adapters/SearchEntryCursorAdapter.kt deleted file mode 100644 index 06d576f21..000000000 --- a/app/src/main/java/com/kunzisoft/keepass/adapters/SearchEntryCursorAdapter.kt +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2019 Jeremy Jamet / Kunzisoft. - * - * This file is part of KeePassDX. - * - * KeePassDX is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * KeePassDX is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with KeePassDX. If not, see . - * - */ -package com.kunzisoft.keepass.adapters - -import android.content.Context -import android.database.Cursor -import android.database.MatrixCursor -import android.graphics.Color -import android.provider.BaseColumns -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import android.widget.ImageView -import android.widget.TextView -import androidx.cursoradapter.widget.CursorAdapter -import com.kunzisoft.keepass.R -import com.kunzisoft.keepass.database.element.Database -import com.kunzisoft.keepass.database.element.Entry -import com.kunzisoft.keepass.database.element.Group -import com.kunzisoft.keepass.database.element.node.NodeId -import com.kunzisoft.keepass.database.element.node.NodeIdUUID -import com.kunzisoft.keepass.database.search.SearchHelper -import com.kunzisoft.keepass.settings.PreferencesUtil -import com.kunzisoft.keepass.view.strikeOut -import java.util.* - -class SearchEntryCursorAdapter(private val context: Context, - private val database: Database) - : CursorAdapter(context, null, FLAG_REGISTER_CONTENT_OBSERVER) { - - private val cursorInflater: LayoutInflater? = context.getSystemService( - Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater? - private var mDisplayUsername: Boolean = false - private var mOmitBackup: Boolean = true - private val iconColor: Int - - init { - // Get the icon color - val taTextColor = context.theme.obtainStyledAttributes(intArrayOf(R.attr.textColorInverse)) - this.iconColor = taTextColor.getColor(0, Color.WHITE) - taTextColor.recycle() - - reInit(context) - } - - fun reInit(context: Context) { - this.mDisplayUsername = PreferencesUtil.showUsernamesListEntries(context) - this.mOmitBackup = PreferencesUtil.omitBackup(context) - } - - override fun newView(context: Context, cursor: Cursor, parent: ViewGroup): View { - - val view = cursorInflater!!.inflate(R.layout.item_search_entry, parent, false) - val viewHolder = ViewHolder() - viewHolder.imageViewIcon = view.findViewById(R.id.entry_icon) - viewHolder.textViewTitle = view.findViewById(R.id.entry_text) - viewHolder.textViewSubTitle = view.findViewById(R.id.entry_subtext) - viewHolder.textViewPath = view.findViewById(R.id.entry_path) - view.tag = viewHolder - - return view - } - - override fun bindView(view: View, context: Context, cursor: Cursor?) { - getEntryFrom(cursor)?.let { currentEntry -> - val viewHolder = view.tag as ViewHolder - - // Assign image - viewHolder.imageViewIcon?.let { iconView -> - database.iconDrawableFactory.assignDatabaseIcon(iconView, currentEntry.icon, iconColor) - } - - // Assign title - viewHolder.textViewTitle?.apply { - text = currentEntry.getVisualTitle() - strikeOut(currentEntry.isCurrentlyExpires) - } - - // Assign subtitle - viewHolder.textViewSubTitle?.apply { - val entryUsername = currentEntry.username - text = if (mDisplayUsername && entryUsername.isNotEmpty()) { - String.format("(%s)", entryUsername) - } else { - "" - } - visibility = if (text.isEmpty()) View.GONE else View.VISIBLE - strikeOut(currentEntry.isCurrentlyExpires) - } - - viewHolder.textViewPath?.apply { - text = currentEntry.getPathString() - } - } - } - - private fun getEntryFrom(cursor: Cursor?): Entry? { - val entryCursor = cursor as? EntryCursor? - entryCursor?.getNodeId()?.let { - return database.getEntryById(it) - } - return null - } - - override fun runQueryOnBackgroundThread(constraint: CharSequence): Cursor? { - return searchEntries(context, constraint.toString()) - } - - private fun searchEntries(context: Context, query: String): Cursor { - val cursor = EntryCursor() - val searchGroup = database.createVirtualGroupFromSearch(query, - mOmitBackup, - SearchHelper.MAX_SEARCH_ENTRY) - if (searchGroup != null) { - // Search in hide entries but not meta-stream - for (entry in searchGroup.getFilteredChildEntries(Group.ChildFilter.getDefaults(context))) { - database.startManageEntry(entry) - cursor.addEntry(entry) - database.stopManageEntry(entry) - } - } - return cursor - } - - fun getEntryFromPosition(position: Int): Entry? { - var pwEntry: Entry? = null - - val cursor = this.cursor - if (cursor.moveToFirst() && cursor.move(position)) { - pwEntry = getEntryFrom(cursor) - } - return pwEntry - } - - private class ViewHolder { - var imageViewIcon: ImageView? = null - var textViewTitle: TextView? = null - var textViewSubTitle: TextView? = null - var textViewPath: TextView? = null - } - - private class EntryCursor : MatrixCursor(arrayOf( - ID, - COLUMN_INDEX_UUID_MOST_SIGNIFICANT_BITS, - COLUMN_INDEX_UUID_LEAST_SIGNIFICANT_BITS - )) { - - private var entryId: Long = 0 - - fun addEntry(entry: Entry) { - addRow(arrayOf( - entryId, - entry.nodeId.id.mostSignificantBits, - entry.nodeId.id.leastSignificantBits - )) - entryId++ - } - - fun getNodeId(): NodeId { - return NodeIdUUID( - UUID(getLong(getColumnIndex(COLUMN_INDEX_UUID_MOST_SIGNIFICANT_BITS)), - getLong(getColumnIndex(COLUMN_INDEX_UUID_LEAST_SIGNIFICANT_BITS))) - ) - } - - companion object { - const val ID = BaseColumns._ID - const val COLUMN_INDEX_UUID_MOST_SIGNIFICANT_BITS = "UUID_most_significant_bits" - const val COLUMN_INDEX_UUID_LEAST_SIGNIFICANT_BITS = "UUID_least_significant_bits" - } - } -} diff --git a/app/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt b/app/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt index 6553523bc..fff53ab31 100644 --- a/app/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt +++ b/app/src/main/java/com/kunzisoft/keepass/database/search/SearchHelper.kt @@ -89,7 +89,7 @@ class SearchHelper { } companion object { - const val MAX_SEARCH_ENTRY = 10 + const val MAX_SEARCH_ENTRY = 100 /** * Utility method to perform actions if item is found or not after an auto search in [database] diff --git a/app/src/main/java/com/kunzisoft/keepass/viewmodels/GroupViewModel.kt b/app/src/main/java/com/kunzisoft/keepass/viewmodels/GroupViewModel.kt index f47c6d1ec..2d122c68c 100644 --- a/app/src/main/java/com/kunzisoft/keepass/viewmodels/GroupViewModel.kt +++ b/app/src/main/java/com/kunzisoft/keepass/viewmodels/GroupViewModel.kt @@ -26,7 +26,7 @@ import com.kunzisoft.keepass.activities.GroupActivity import com.kunzisoft.keepass.app.database.IOActionTask import com.kunzisoft.keepass.database.element.Database import com.kunzisoft.keepass.database.element.Group -import com.kunzisoft.keepass.database.element.node.Node +import com.kunzisoft.keepass.database.search.SearchHelper class GroupViewModel: ViewModel() { @@ -75,7 +75,11 @@ class GroupViewModel: ViewModel() { omitBackup: Boolean) { IOActionTask( { - database?.createVirtualGroupFromSearch(searchQuery, omitBackup) + database?.createVirtualGroupFromSearch( + searchQuery, + omitBackup, + SearchHelper.MAX_SEARCH_ENTRY + ) }, { group -> if (group != null) { diff --git a/app/src/main/res/layout/activity_group.xml b/app/src/main/res/layout/activity_group.xml index f7c3cffaf..f459fcd77 100644 --- a/app/src/main/res/layout/activity_group.xml +++ b/app/src/main/res/layout/activity_group.xml @@ -59,45 +59,6 @@ tools:text="Database" style="@style/KeepassDXStyle.TextAppearance.Title.TextOnPrimary" /> - - - - - - - + + + + + + - + android:minHeight="?attr/actionBarSize" + android:background="?attr/colorPrimary" + android:orientation="vertical" + android:visibility="visible"> + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_search_entry.xml b/app/src/main/res/layout/item_search_entry.xml deleted file mode 100644 index 6918589d2..000000000 --- a/app/src/main/res/layout/item_search_entry.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index f5c907c10..d8b1d0046 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -95,7 +95,6 @@ تاريخ آخر تعديل خاصّ البحث - نتائج البحث تسطير حروف كبيرة تحذير diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index 41c42248c..02fcb7c4e 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -116,7 +116,6 @@ Ordre natural Especial Cerca - Resultats de la cerca Subratllat Versió de la base de dades no suportada. Majúscules diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 0a58b1bfe..31e21fc31 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -125,7 +125,6 @@ Přirozené řazení Speciální Hledat - Výsledky hledání Podtržítko Nepodporovaná verze databáze. Velká písmena diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml index 2ebc6bddf..a7d39fd59 100644 --- a/app/src/main/res/values-da/strings.xml +++ b/app/src/main/res/values-da/strings.xml @@ -124,7 +124,6 @@ Naturlig rækkefølge Speciel Søg - Søgeresultater Understregning Database-versionen er ikke understøttet. Store bogstaver diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 269573361..77b7fa2b8 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -137,7 +137,6 @@ Natürliche Sortierung Spezialsymbole Suchen - Suchergebnisse Unterstriche Datenbankversion wird nicht unterstützt. Großbuchstaben diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index 0f513aeb2..18b25252d 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -127,7 +127,6 @@ Κανονική ταξινόμηση Ειδικοί Αναζήτηση - Αποτελέσματα αναζήτησης Υπογράμμιση Μη υποστηριζόμενη έκδοση βάσης δεδομένων. Κεφαλαία diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index b470d8700..533cf09f5 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -5,7 +5,6 @@ Versio %1$s Averto Majuskloj - Serĉrezultoj Serĉi Uzantnomo Titolo diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 868dbbe6e..ee551ae3d 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -164,7 +164,6 @@ Creación Modificación Acceso - Resultados de búsqueda Atención No se pudieron encontrar los datos de entrada. Evite los caracteres de la contraseña fuera del formato de codificación de texto en el archivo de la base de datos (los caracteres no reconocidos se convierten a la misma letra). diff --git a/app/src/main/res/values-eu/strings.xml b/app/src/main/res/values-eu/strings.xml index e501ae3fe..94bc34fc4 100644 --- a/app/src/main/res/values-eu/strings.xml +++ b/app/src/main/res/values-eu/strings.xml @@ -126,7 +126,6 @@ DB-a antolatzeko ordena Berezia Sarreraren Izena / Deskribapena - Bilaketaren emaitzak Azpimarratu Euskarririk gabeko datubase bertsioa. Maiuskulak diff --git a/app/src/main/res/values-fa/strings.xml b/app/src/main/res/values-fa/strings.xml index a4bb3195a..5a1756fbb 100644 --- a/app/src/main/res/values-fa/strings.xml +++ b/app/src/main/res/values-fa/strings.xml @@ -17,7 +17,6 @@ بزرگ نسخه پایگاه داده پشتیبانی نمی شود. زیر خط بزنید - نتایج جستجو جستجو ویژه دسترسی diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 6dd0373f1..fa431a386 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -126,7 +126,6 @@ Luonnollinen järjestys Erityistä Tietueen otsikko/kuvaus - Hakutulokset Alleviivattu Ei-tuettu salasanatietokannan versio. Isot kirjaimet diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 76b1f5872..6e4318c02 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -151,7 +151,6 @@ Accèsen Spéciaux Rechercher - Résultats de recherche Souligné Version de la base de données non prise en charge. Majuscules diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index ecc1e652b..fd4dc5c60 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -167,7 +167,6 @@ Vremenu kreiranja Zadnja promjena Pretraga - Rezultati pretrage Nepodržana verzija baze podataka. Upozorenje Nastaviti bez zaštitite otključavanja lozinkom\? diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index c0ed36ef0..e5d7e795d 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -128,7 +128,6 @@ Természetes rendezés Speciális Keresés - Találatok Aláhúzás Nem támogatott adatbázis-verzió. Nagybetűs diff --git a/app/src/main/res/values-id/strings.xml b/app/src/main/res/values-id/strings.xml index a9e3b15d4..84c71616a 100644 --- a/app/src/main/res/values-id/strings.xml +++ b/app/src/main/res/values-id/strings.xml @@ -222,7 +222,6 @@ Hapus data ini\? Peringatan Versi database tidak di dukung. - Hasil pencarian Cari Akses Modifikasi diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 9ce63ff1b..bdd9bf0b4 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -130,7 +130,6 @@ Ordine naturale Speciali Cerca - Risultati della ricerca Trattino basso Versione del database non supportata. Maiuscole diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index f1b2a045d..c561beca2 100644 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -123,7 +123,6 @@ חיפוש סדר מיון מסד נתונים מיוחד - תוצאות חיפוש קו תחתון גרסת מסד נתונים לא נתמכת. רישית diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index e489a6bf0..7c08f379b 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -246,7 +246,6 @@ 最終アクセス 特殊文字 検索 - 検索結果 アンダースコア 対応していないバージョンのデータベースです。 大文字 diff --git a/app/src/main/res/values-lt/strings.xml b/app/src/main/res/values-lt/strings.xml index f1fefc4ba..e2d4a58aa 100644 --- a/app/src/main/res/values-lt/strings.xml +++ b/app/src/main/res/values-lt/strings.xml @@ -69,7 +69,6 @@ Niekada Apsauga Paieška - Paieškos rezultatai Versija %1$s Įspėjimas Atidaryti esamą duomenų bazę diff --git a/app/src/main/res/values-lv/strings.xml b/app/src/main/res/values-lv/strings.xml index f3100b69e..5516dd07d 100644 --- a/app/src/main/res/values-lv/strings.xml +++ b/app/src/main/res/values-lv/strings.xml @@ -123,7 +123,6 @@ Izejas Speciālie Ieraksta nosaukums/apraksts - Meklēšanas rezultāti Pasvītrojums Neatbalstīta datu bāzes versija. Lielie burti diff --git a/app/src/main/res/values-ml/strings.xml b/app/src/main/res/values-ml/strings.xml index d7a51b58c..6c763cfde 100644 --- a/app/src/main/res/values-ml/strings.xml +++ b/app/src/main/res/values-ml/strings.xml @@ -227,7 +227,6 @@ Autofill service could not be activated. ക്ലിപ്പ്ബോർഡ് ടൈംഔട്ട് ആപ്പ് ടൈംഔട്ട് - തിരയൽ ഫലങ്ങൾ ഹിസ്റ്ററി വീണ്ടെടുക്കുക കാലഹരണപ്പെടുന്നു വൈബ്രേറ്ററി കീപ്രസ്സ് diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml index 951b23ce5..1bdf6df5d 100644 --- a/app/src/main/res/values-nb/strings.xml +++ b/app/src/main/res/values-nb/strings.xml @@ -162,7 +162,6 @@ Sist åpnet Spesialtegn Søk - Søkeresultater Understrek Ustøttet databaseversjon. Store bokstaver diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index b608161b8..0605222bc 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -178,7 +178,6 @@ Gecreëerd op Aangepast om Geopend om - Zoekresultaten Waarschuwing Vermijd wachtwoordtekens buiten het tekstcoderingsformaat in het databasebestand (niet-herkende tekens worden geconverteerd naar dezelfde letter). Doorgaan zonder beveiliging voor wachtwoordontgrendeling\? diff --git a/app/src/main/res/values-pa/strings.xml b/app/src/main/res/values-pa/strings.xml index 4aa8bd8ce..b9fd6ceba 100644 --- a/app/src/main/res/values-pa/strings.xml +++ b/app/src/main/res/values-pa/strings.xml @@ -39,7 +39,6 @@ ਵੱਡੇ ਅੱਖਰ (ਅੰਗਰੇਜ਼ੀ) ਗ਼ੈਰ-ਸਹਾਇਕ ਡਾਟਾਬੇਸ ਵਰਜ਼ਨ ਹੈ। ਹੇਠਾਂ ਲਾਈਨ - ਖੋਜ ਨਤੀਜੇ ਖੋਜ ਖਾਸ ਪਹੁੰਚ diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 8b76a87a6..30b035f4c 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -170,7 +170,6 @@ Utwórz Modyfikacja Dostęp - Wyniki wyszukiwania Ostrzeżenie Unikaj znaków hasła spoza formatu kodowania tekstu w pliku bazy danych (nierozpoznane znaki są konwertowane na tę samą literę). Kosz na dole diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 10f6824a7..5d5ecbbbc 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -171,7 +171,6 @@ Data de criação Última modificação Último acesso - Resultados da busca Aviso Evite caracteres fora do formato de codificação do arquivo do banco (todos os caracteres não reconhecidos são convertidos para a mesma letra). Continuar sem proteção de desbloqueio por senha\? diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 80f25c909..22391d605 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -129,7 +129,6 @@ Ordenação natural Especiais Pesquisar - Resultados da pesquisa Sublinhado Versão da base de dados não suportada. Maiúsculas diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 127e6e370..b510da9e2 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -107,7 +107,6 @@ Maiúsculas Versão da base de dados não suportada. Sublinhado - Resultados da pesquisa Pesquisar Especiais Último acesso diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index d91d5ecc6..351eec4fb 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -221,7 +221,6 @@ Acces Special Căutare - Rezultatele căutării Subliniere Versiunea bazei de date neacceptată. Cu majuscule diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 3fbfdf81c..907321fd9 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -129,7 +129,6 @@ Естественный порядок $пеци@льные Поиск - Результаты поиска _Подчёркивание_ Неподдерживаемая версия базы. ЗАГЛАВНЫЕ diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 37a822a4c..ac0d0e818 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -125,7 +125,6 @@ Naturlig ordning Specialtecken Postens titel/beskrivning - Sökresultat Understreck Databasversionen stöds ej. Versaler diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index b314ef83d..a2617f08d 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -162,7 +162,6 @@ Erişim Özel Ara - Arama Sonuçları Eksi Altı çizili Desteklenmeyen veri tabanı sürümü. diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 548267ad0..191193da6 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -421,7 +421,6 @@ Надайте дозвіл змінювати файл для збереження змін у базі даних У паролі, уникайте символів поза форматом кодування тексту у файлі бази даних (нерозпізнані символи будуть перетворені на ту ж літеру). Попередження - Результати пошуку Доступ Востаннє змінено Дата створення diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 46bbcecf0..76fda4147 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -171,7 +171,6 @@ 新建时间 修改时间 访问时间 - 搜索结果 警告 版本 %1$s 历史 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index f2a994c16..ed480e39a 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -497,7 +497,6 @@ 條目名稱/說明 搜尋 搜尋模式 - 搜尋結果 安全註記 安全 種子 diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index b97eb3bc7..f5b7f7cac 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -29,6 +29,7 @@ + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 536aff4d5..134fa2938 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -104,6 +104,7 @@ Counter Digits Algorithm + Case sensitive Debit / Credit Card Holder Number @@ -312,7 +313,6 @@ Access Special Search - Search results Underline Unsupported database version. Upper-case diff --git a/app/src/main/res/values/style_classic.xml b/app/src/main/res/values/style_classic.xml index d13fe72a8..4847d2018 100644 --- a/app/src/main/res/values/style_classic.xml +++ b/app/src/main/res/values/style_classic.xml @@ -36,6 +36,7 @@ @style/KeepassDXStyle.Toolbar.Home.Clear @style/KeepassDXStyle.Toolbar.Special.Clear @style/KeepassDXStyle.Toolbar.Action.Clear + @color/grey_lighter @style/KeepassDXStyle.Toolbar.Popup.Clear @style/KeepassDXStyle.Clear.Dialog @style/KeepassDXStyle.Clear.Dialog @@ -113,6 +114,7 @@ @style/KeepassDXStyle.Toolbar.Home.Dark @style/KeepassDXStyle.Toolbar.Special.Dark @style/KeepassDXStyle.Toolbar.Action.Dark + @color/black_light @style/KeepassDXStyle.Dark.Dialog @style/KeepassDXStyle.Dark.Dialog @style/KeepassDXStyle.Cardview.Dark diff --git a/app/src/main/res/values/style_divine.xml b/app/src/main/res/values/style_divine.xml index 699cddc49..b723415bc 100644 --- a/app/src/main/res/values/style_divine.xml +++ b/app/src/main/res/values/style_divine.xml @@ -38,6 +38,7 @@ @style/KeepassDXStyle.Toolbar.Home.White @style/KeepassDXStyle.Toolbar.Special.White @style/KeepassDXStyle.Toolbar.Action.White + @color/grey_lighter @style/KeepassDXStyle.Toolbar.Popup.White @style/KeepassDXStyle.White.Dialog @style/KeepassDXStyle.White.Dialog @@ -114,6 +115,7 @@ @style/KeepassDXStyle.Toolbar.Home.Black @style/KeepassDXStyle.Toolbar.Special.Black @style/KeepassDXStyle.Toolbar.Action.Black + @color/black @style/KeepassDXStyle.Toolbar.Popup.Black @style/KeepassDXStyle.Black.Dialog @style/KeepassDXStyle.Black.Dialog diff --git a/app/src/main/res/values/style_kunzite.xml b/app/src/main/res/values/style_kunzite.xml index 53e678d37..3c492019a 100644 --- a/app/src/main/res/values/style_kunzite.xml +++ b/app/src/main/res/values/style_kunzite.xml @@ -33,6 +33,7 @@ @style/KeepassDXStyle.Toolbar.Home.Purple @style/KeepassDXStyle.Toolbar.Special.Purple @style/KeepassDXStyle.Toolbar.Action.Purple + @color/purple_light @style/KeepassDXStyle.Toolbar.Popup.Purple @style/KeepassDXStyle.Purple.Dialog @style/KeepassDXStyle.Purple.Dialog @@ -106,6 +107,7 @@ @style/KeepassDXStyle.Toolbar.Home.Purple.Dark @style/KeepassDXStyle.Toolbar.Special.Purple.Dark @style/KeepassDXStyle.Toolbar.Action.Purple.Dark + @color/purple_dark @style/KeepassDXStyle.Toolbar.Popup.Purple.Dark @style/KeepassDXStyle.Purple.Dark.Dialog @style/KeepassDXStyle.Purple.Dark.Dialog diff --git a/app/src/main/res/values/style_moon.xml b/app/src/main/res/values/style_moon.xml index 98fbcbc8e..2aa90fb06 100644 --- a/app/src/main/res/values/style_moon.xml +++ b/app/src/main/res/values/style_moon.xml @@ -34,6 +34,7 @@ @style/KeepassDXStyle.Toolbar.Home.Blue @style/KeepassDXStyle.Toolbar.Special.Blue @style/KeepassDXStyle.Toolbar.Action.Blue + @color/blue_light @style/KeepassDXStyle.Blue.Dialog @style/KeepassDXStyle.Blue.Dialog @color/blue_dark @@ -94,6 +95,7 @@ @style/KeepassDXStyle.Toolbar.Home.Blue.Night @style/KeepassDXStyle.Toolbar.Special.Blue.Night @style/KeepassDXStyle.Toolbar.Action.Blue.Night + @color/blue_dark @style/KeepassDXStyle.Blue.Night.Dialog @style/KeepassDXStyle.Blue.Night.Dialog @color/blue_dark diff --git a/app/src/main/res/values/style_sun.xml b/app/src/main/res/values/style_sun.xml index d48239d38..683340d03 100644 --- a/app/src/main/res/values/style_sun.xml +++ b/app/src/main/res/values/style_sun.xml @@ -34,6 +34,7 @@ @style/KeepassDXStyle.Toolbar.Home.Red @style/KeepassDXStyle.Toolbar.Special.Red @style/KeepassDXStyle.Toolbar.Action.Red + @color/red_light @style/KeepassDXStyle.Red.Dialog @style/KeepassDXStyle.Red.Dialog @color/red_dark @@ -93,6 +94,7 @@ @style/KeepassDXStyle.Toolbar.Home.Red.Night @style/KeepassDXStyle.Toolbar.Special.Red.Night @style/KeepassDXStyle.Toolbar.Action.Red.Night + @color/red_dark @style/KeepassDXStyle.Red.Night.Dialog @style/KeepassDXStyle.Red.Night.Dialog @color/red_dark diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index cf3910235..cbc2c73b6 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -87,6 +87,7 @@ @style/KeepassDXStyle.Toolbar.Action.Light @style/KeepassDXStyle.Expanded.Title @style/KeepassDXStyle.Collapsed.Title + @color/green_light @color/green_light @@ -153,6 +154,7 @@ @style/KeepassDXStyle.Toolbar.Action.Night @style/KeepassDXStyle.Expanded.Title @style/KeepassDXStyle.Collapsed.Title + @color/green_light @color/green_light @@ -268,6 +270,15 @@ @style/ThemeOverlay.KeepassDXTheme.CompleteTextView + + +