Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in settings #20016

Open
wants to merge 421 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
421 commits
Select commit Hold shift + click to select a range
cab6db3
adapting a TODO
KnollFrank Nov 15, 2024
dd466c4
new new version of settings library with progress bar when building s…
KnollFrank Nov 15, 2024
05900b6
new version of settings library
KnollFrank Nov 22, 2024
21bd1f0
new version of settings library
KnollFrank Nov 24, 2024
0b8bc4a
rebuilding settings search database when a plugin is enabled or disab…
KnollFrank Nov 26, 2024
4e702ed
refactoring
KnollFrank Nov 26, 2024
b7d5933
refactoring
KnollFrank Nov 26, 2024
b523c2d
createSearchDatabase on application start
KnollFrank Nov 28, 2024
759e955
displaying progress when building search database
KnollFrank Nov 28, 2024
25c26e4
displaying progress while task is running
KnollFrank Nov 30, 2024
f5c11ca
adapting to new version of settings library
KnollFrank Dec 1, 2024
b688599
adapting to new version of settings library
KnollFrank Dec 1, 2024
efaeb83
adding custom SearchPreferenceFragmentUI
KnollFrank Dec 2, 2024
e8f48ee
adding custom SearchResultsFragmentUI
KnollFrank Dec 2, 2024
a02465b
adapting search UI
KnollFrank Dec 2, 2024
068e29f
refactoring
KnollFrank Dec 2, 2024
2a822fd
new new version of settings library
KnollFrank Dec 3, 2024
fe46a2c
new version of settings library
KnollFrank Dec 3, 2024
36126bc
refactoring
KnollFrank Dec 3, 2024
1c9fe21
hideSearchableInfo() if no matches in searchable info found
KnollFrank Dec 4, 2024
c4fda9a
refactoring
KnollFrank Dec 4, 2024
e84d988
refactoring
KnollFrank Dec 4, 2024
ad8d445
sorting preference search results by their paths
KnollFrank Dec 7, 2024
e585110
formatting
KnollFrank Dec 7, 2024
e35d6c1
refactoring
KnollFrank Dec 7, 2024
8b76710
new version of settings library
KnollFrank Dec 7, 2024
c877d17
adding PreferencePathDisplayer
KnollFrank Dec 9, 2024
834a908
refactoring
KnollFrank Dec 9, 2024
77a78c4
refactoring
KnollFrank Dec 9, 2024
e0c4d1d
Merge remote-tracking branch 'upstream/master' into Search-in-settings
KnollFrank Dec 12, 2024
3ede449
adding missing keys to some preferences in order to make search work
KnollFrank Dec 12, 2024
0b1adf6
reactivating some ignored tests
KnollFrank Dec 12, 2024
7ecea92
making SettingsSearchTest pass again
KnollFrank Dec 12, 2024
cb05765
refactoring
KnollFrank Dec 12, 2024
da7a49b
refactoring
KnollFrank Dec 12, 2024
530e528
removing some done TODOs
KnollFrank Dec 12, 2024
25027d0
refactoring
KnollFrank Dec 12, 2024
06df7d0
making AnnouncementTimeBottomSheet searchable
KnollFrank Dec 13, 2024
300bb53
adding a TODO
KnollFrank Dec 14, 2024
0e8ab87
refactoring
KnollFrank Dec 14, 2024
be4c7eb
adding SettingsSearchTest.test_search_within_FuelTankCapacityBottomSh…
KnollFrank Dec 15, 2024
ae9b8d5
refactoring
KnollFrank Dec 15, 2024
47f5b91
refactoring
KnollFrank Dec 15, 2024
cc05f31
refactoring
KnollFrank Dec 15, 2024
3e3e3d8
refining SettingsSearchTest
KnollFrank Dec 15, 2024
904e482
refactoring some tests
KnollFrank Dec 15, 2024
44c8441
refactoring
KnollFrank Dec 15, 2024
4bec58f
refactoring
KnollFrank Dec 15, 2024
1cbff34
refactoring
KnollFrank Dec 15, 2024
3b85692
refactoring
KnollFrank Dec 15, 2024
e96aea4
refactoring
KnollFrank Dec 16, 2024
f856347
refactoring
KnollFrank Dec 16, 2024
4d791c2
adding a test case in SettingsSearchParameterizedTest
KnollFrank Dec 16, 2024
4c16962
refactoring
KnollFrank Dec 16, 2024
90ce901
making GoodsRestrictionsBottomSheet searchable
KnollFrank Dec 16, 2024
373d9df
making LocationInterpolationBottomSheet searchable
KnollFrank Dec 16, 2024
05c0eb1
refactoring
KnollFrank Dec 16, 2024
19dbdb2
refactoring
KnollFrank Dec 17, 2024
dc5c3ab
refactoring GeneralProfileSettingsFragment
KnollFrank Dec 17, 2024
5f870a9
refactoring GlobalSettingsFragment
KnollFrank Dec 17, 2024
f3a89d4
refactoring ProfileAppearanceFragment
KnollFrank Dec 17, 2024
1082d1f
refactoring RouteParametersFragment
KnollFrank Dec 17, 2024
56fd06f
refining SettingsSearchParameterizedTest
KnollFrank Dec 17, 2024
856097a
refactoring VoiceAnnouncesFragment
KnollFrank Dec 17, 2024
6b7aec3
Revert "refactoring VoiceAnnouncesFragment"
KnollFrank Dec 18, 2024
8a8bcf0
Revert "refining SettingsSearchParameterizedTest"
KnollFrank Dec 18, 2024
a887b18
Revert "refactoring RouteParametersFragment"
KnollFrank Dec 18, 2024
db7bf4d
Revert "refactoring ProfileAppearanceFragment"
KnollFrank Dec 18, 2024
5e0b1b1
Revert "refactoring GlobalSettingsFragment"
KnollFrank Dec 18, 2024
f7934bf
Revert "refactoring GeneralProfileSettingsFragment"
KnollFrank Dec 18, 2024
aa2e6b6
Revert "refactoring"
KnollFrank Dec 18, 2024
3ec42f8
Revert "refactoring"
KnollFrank Dec 18, 2024
670cd9e
refining SettingsSearchParameterizedTest
KnollFrank Dec 18, 2024
f22aa2a
starting to make ResetProfilePrefsBottomSheet searchable
KnollFrank Dec 18, 2024
4714d3e
refactoring
KnollFrank Dec 18, 2024
894ebef
refactoring
KnollFrank Dec 18, 2024
ac89eb3
refactoring
KnollFrank Dec 18, 2024
ee4d38c
refactoring
KnollFrank Dec 18, 2024
b8d901b
refactoring
KnollFrank Dec 18, 2024
58fba03
refactoring
KnollFrank Dec 18, 2024
be2ff2c
adding test SettingsSearchTest.shouldSearchAndFind_ResetProfilePrefsB…
KnollFrank Dec 18, 2024
cb5d9af
refining SettingsSearchTest
KnollFrank Dec 18, 2024
dda12aa
refactoring
KnollFrank Dec 18, 2024
80c7ff9
refactoring
KnollFrank Dec 18, 2024
b0bae6f
refactoring
KnollFrank Dec 18, 2024
adeff6a
refactoring
KnollFrank Dec 18, 2024
4aae3fb
refactoring
KnollFrank Dec 18, 2024
673c901
refactoring
KnollFrank Dec 18, 2024
e929d75
refactoring
KnollFrank Dec 18, 2024
d979cf4
refactoring GlobalSettingsFragment
KnollFrank Dec 18, 2024
d018a9d
refactoring VehicleParametersFragment
KnollFrank Dec 18, 2024
49629d3
refactoring GeneralProfileSettingsFragment
KnollFrank Dec 19, 2024
a1deaaf
refactoring ProfileAppearanceFragment
KnollFrank Dec 19, 2024
db8efbf
refactoring RouteParametersFragment
KnollFrank Dec 19, 2024
c129d34
refactoring
KnollFrank Dec 19, 2024
0747499
refactoring VoiceAnnouncesFragment
KnollFrank Dec 19, 2024
e72f6fe
refactoring
KnollFrank Dec 19, 2024
f4c4375
refactoring
KnollFrank Dec 19, 2024
60ecd27
refactoring
KnollFrank Dec 19, 2024
423a330
making VoiceLanguageBottomSheetFragment searchable
KnollFrank Dec 19, 2024
f6e689b
refactoring
KnollFrank Dec 19, 2024
da91e72
starting to make WakeTimeBottomSheet searchable
KnollFrank Dec 20, 2024
52c00ba
refining SettingsSearchParameterizedTest
KnollFrank Dec 20, 2024
6f97670
making SelectNavProfileBottomSheet searchable
KnollFrank Dec 20, 2024
c0fec5d
refining searchable info of SelectNavProfileBottomSheet
KnollFrank Dec 20, 2024
9edf719
starting to make SelectDefaultProfileBottomSheet searchable
KnollFrank Dec 21, 2024
346a630
adding profiles to searchable info of SelectDefaultProfileBottomSheet
KnollFrank Dec 21, 2024
e72d863
making SelectBaseProfileBottomSheet searchable
KnollFrank Dec 21, 2024
a76a99f
refactoring
KnollFrank Dec 21, 2024
a387c0f
refactoring
KnollFrank Dec 21, 2024
bcc40da
refactoring
KnollFrank Dec 21, 2024
ee4437b
removing a done TODO
KnollFrank Dec 21, 2024
84fb127
refactoring
KnollFrank Dec 22, 2024
0ab49e1
refactoring
KnollFrank Dec 22, 2024
21c9804
refactoring
KnollFrank Dec 22, 2024
19f54f7
refactoring
KnollFrank Dec 22, 2024
8cf474c
refactoring
KnollFrank Dec 22, 2024
9b3d31e
removing searchResultsHeading from custom_searchresults_fragment.xml
KnollFrank Dec 22, 2024
d3a97e1
adding test SettingsSearchTest.shouldSearchAndFind_ResetProfilePrefsB…
KnollFrank Dec 22, 2024
3b9082d
making reset_to_default from MonitoringSettingsFragment searchable
KnollFrank Dec 23, 2024
053295b
adding Test SettingsSearchTest.shouldSearchAndFind_ResetProfilePrefsB…
KnollFrank Dec 23, 2024
2869f8e
refactoring
KnollFrank Dec 23, 2024
1f5490a
adding test SettingsSearchTest.shouldSearchAndFind_ResetProfilePrefsB…
KnollFrank Dec 23, 2024
695c384
adding test SettingsSearchTest.test_search_ApplicationMode_find_Selec…
KnollFrank Dec 24, 2024
384e433
adding a TODO
KnollFrank Dec 25, 2024
364251c
refining SettingsSearchTest
KnollFrank Dec 26, 2024
6e85505
making new tests in SettingsSearchTest pass
KnollFrank Dec 26, 2024
cf87184
refactoring
KnollFrank Dec 26, 2024
5186532
adding test SettingsSearchTest.shouldSearchAndFind_SelectCopyAppModeB…
KnollFrank Dec 26, 2024
c7da284
refactoring
KnollFrank Dec 26, 2024
91a5f0e
refactoring
KnollFrank Dec 26, 2024
05e0ead
refactoring
KnollFrank Dec 26, 2024
5e4933e
refining SettingsSearchTest
KnollFrank Dec 26, 2024
e669749
refactoring
KnollFrank Dec 26, 2024
f15fad9
removing some TODOs
KnollFrank Dec 26, 2024
47aba08
adding test SettingsSearchTest.shouldSearchAndFind_SelectCopyAppModeB…
KnollFrank Dec 26, 2024
2379d55
refactoring
KnollFrank Dec 26, 2024
c3cd45a
adding test case for ConfigureScreenFragment to SettingsSearchParamet…
KnollFrank Dec 26, 2024
c4f5875
refining ConfigureScreenFragment.getSearchableInfo()
KnollFrank Dec 26, 2024
bb60fd6
whenCustomAppModesKeysChangedThenRebuildSearchDatabase()
KnollFrank Dec 26, 2024
77bf0a1
whenCustomAppModesKeysOrUserProfileNameChangedThenRebuildSearchDataba…
KnollFrank Dec 28, 2024
3255798
refactoring
KnollFrank Dec 29, 2024
a1b2711
refactoring
KnollFrank Dec 29, 2024
dd71d79
refactoring
KnollFrank Dec 29, 2024
fe93fe2
refactoring
KnollFrank Dec 29, 2024
9552508
refactoring
KnollFrank Dec 29, 2024
1448d91
refactoring
KnollFrank Dec 29, 2024
dcbf340
refactoring
KnollFrank Dec 29, 2024
f007cf5
refactoring
KnollFrank Dec 29, 2024
2b3caed
refactoring
KnollFrank Dec 29, 2024
cfcffe9
refactoring
KnollFrank Dec 29, 2024
0c56dd0
refactoring
KnollFrank Dec 29, 2024
8b03ef1
refactoring
KnollFrank Dec 29, 2024
b750b26
refactoring
KnollFrank Dec 29, 2024
887cefc
refactoring
KnollFrank Dec 29, 2024
4946e15
refactoring
KnollFrank Dec 29, 2024
496bb02
refactoring
KnollFrank Dec 29, 2024
4813b12
refactoring
KnollFrank Dec 29, 2024
1b34b53
refactoring
KnollFrank Dec 29, 2024
f12f315
refactoring
KnollFrank Dec 30, 2024
c929a99
adapting preference_button.xml for display in search results
KnollFrank Dec 31, 2024
8a9fdc0
adding a TODO
KnollFrank Dec 31, 2024
92ae725
starting to make ConfigureMenuRootFragment searchable
KnollFrank Dec 31, 2024
be9baaf
displaying "Path: " part within PreferencePathDisplayer
KnollFrank Dec 31, 2024
9949e9d
adapting preference_switch.xml for displaying searchable_info and pre…
KnollFrank Jan 2, 2025
4eaf4d0
synchronizing searchDatabase read/write operations
KnollFrank Jan 3, 2025
eb85bd8
adapting preference_info.xml for displaying searchable_info and prefe…
KnollFrank Jan 4, 2025
b1373bc
refactoring
KnollFrank Jan 4, 2025
d42169d
adapting preference_category_title.xml for displaying searchable_info…
KnollFrank Jan 4, 2025
18a277c
refactoring
KnollFrank Jan 4, 2025
d6f94d3
Merge remote-tracking branch 'upstream/master' into Search-in-settings
KnollFrank Jan 7, 2025
a1ac662
making compilable again
KnollFrank Jan 7, 2025
685507e
reorganizing imports
KnollFrank Jan 7, 2025
7db3665
reorganizing imports
KnollFrank Jan 7, 2025
236ef8e
reorganizing imports
KnollFrank Jan 7, 2025
6000d65
reorganizing imports
KnollFrank Jan 7, 2025
622d6f4
updating from master
KnollFrank Jan 7, 2025
a482d3f
updating from master
KnollFrank Jan 7, 2025
10b0156
reorganizing imports
KnollFrank Jan 7, 2025
3970288
reorganizing imports
KnollFrank Jan 7, 2025
b77fe54
reorganizing imports
KnollFrank Jan 7, 2025
5c5f2a7
reorganizing imports
KnollFrank Jan 7, 2025
b54b1c7
formatting
KnollFrank Jan 7, 2025
e1df420
reorganizing imports
KnollFrank Jan 7, 2025
ad9ec3e
reorganizing imports
KnollFrank Jan 7, 2025
a587d2f
reorganizing imports
KnollFrank Jan 7, 2025
772c5d6
reorganizing imports
KnollFrank Jan 7, 2025
6108253
reorganizing imports
KnollFrank Jan 7, 2025
5e7ce17
reorganizing imports
KnollFrank Jan 7, 2025
cf5965b
reorganizing imports
KnollFrank Jan 7, 2025
8932295
reorganizing imports
KnollFrank Jan 7, 2025
cbcc054
reorganizing imports
KnollFrank Jan 7, 2025
4c8687d
reorganizing imports
KnollFrank Jan 7, 2025
1eb2e80
reorganizing imports
KnollFrank Jan 7, 2025
4064c7f
reorganizing imports
KnollFrank Jan 7, 2025
a019371
reorganizing imports
KnollFrank Jan 7, 2025
2c0e488
reorganizing imports
KnollFrank Jan 7, 2025
d0134bc
reorganizing imports
KnollFrank Jan 7, 2025
ac66f86
reorganizing imports
KnollFrank Jan 7, 2025
050d5fe
reorganizing imports
KnollFrank Jan 7, 2025
bd877e7
reorganizing imports
KnollFrank Jan 7, 2025
59a396c
reorganizing imports
KnollFrank Jan 7, 2025
f2df75d
reorganizing imports
KnollFrank Jan 7, 2025
9dc4e90
reorganizing imports
KnollFrank Jan 7, 2025
36dc527
reorganizing imports
KnollFrank Jan 7, 2025
0c66f06
reorganizing imports
KnollFrank Jan 7, 2025
3c3859d
reorganizing imports
KnollFrank Jan 7, 2025
0b81d13
reorganizing imports
KnollFrank Jan 7, 2025
b52fc27
reformatting
KnollFrank Jan 7, 2025
3c36401
reorganizing imports
KnollFrank Jan 7, 2025
f504c9a
reorganizing imports
KnollFrank Jan 7, 2025
d09c26b
reorganizing imports
KnollFrank Jan 7, 2025
a22d2af
reorganizing imports
KnollFrank Jan 7, 2025
c922795
reorganizing imports
KnollFrank Jan 7, 2025
b135dd9
reorganizing imports
KnollFrank Jan 7, 2025
a8a7023
reorganizing imports
KnollFrank Jan 7, 2025
0d71b9f
reorganizing imports
KnollFrank Jan 7, 2025
a4a5a89
reorganizing imports
KnollFrank Jan 7, 2025
c7883df
reorganizing imports
KnollFrank Jan 7, 2025
2dbe91a
reorganizing imports
KnollFrank Jan 7, 2025
172cd3d
reorganizing imports
KnollFrank Jan 7, 2025
6e25fbc
reorganizing imports
KnollFrank Jan 7, 2025
5a9ac15
reorganizing imports
KnollFrank Jan 7, 2025
0d2e399
reorganizing imports
KnollFrank Jan 7, 2025
8f39019
reorganizing imports
KnollFrank Jan 7, 2025
4ea47cb
reorganizing imports
KnollFrank Jan 7, 2025
a757b8b
reorganizing imports
KnollFrank Jan 7, 2025
5cde91b
reorganizing imports
KnollFrank Jan 7, 2025
de33324
bug detected when running settings search on OsmAnd-nightlyFree-legac…
KnollFrank Jan 7, 2025
d08be17
refactoring
KnollFrank Jan 7, 2025
e3fabc2
refactoring
KnollFrank Jan 7, 2025
6f81e07
adding a TODO
KnollFrank Jan 9, 2025
d361f77
adding test shouldNotFindProfileAppearanceSettings4DisabledApplicatio…
KnollFrank Jan 9, 2025
5828d2a
refactoring
KnollFrank Jan 9, 2025
1e17308
refactoring
KnollFrank Jan 9, 2025
79bfc28
refactoring
KnollFrank Jan 10, 2025
f8cf8b4
starting SearchResultsFilter
KnollFrank Jan 12, 2025
9c19c74
adding search_inside_disabled_profiles check box
KnollFrank Dec 29, 2024
54d1b4c
refactoring
KnollFrank Jan 13, 2025
bb42919
refactoring
KnollFrank Jan 13, 2025
f788bc5
adding a search_inside_disabled_profiles
KnollFrank Jan 13, 2025
4878525
opening dialogs when clicking on search results which are DialogPrefe…
KnollFrank Jan 15, 2025
b77e392
new version of search library
KnollFrank Jan 16, 2025
768f51f
adapting to new version of search library
KnollFrank Jan 16, 2025
b4a083f
Merge remote-tracking branch 'origin/Search-in-settings' into Search-…
KnollFrank Jan 16, 2025
d6356af
formatting
KnollFrank Jan 20, 2025
e924847
adapting to new version of settings search library
KnollFrank Jan 25, 2025
b4b6f79
adding a TODO
KnollFrank Jan 25, 2025
32184b3
Merge remote-tracking branch 'upstream/master' into Search-in-settings
KnollFrank Jan 26, 2025
062b94c
synchronizing with upstream
KnollFrank Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.osmand.router;


public class RouteResultPreparationNativeTest extends RouteResultPreparationTest {

public RouteResultPreparationNativeTest(String name, TestEntry te) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
import static net.osmand.util.RouterUtilTest.getRoadId;
import static net.osmand.util.RouterUtilTest.getRoadStartPoint;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.osmand.NativeLibrary;
import net.osmand.PlatformUtil;
import net.osmand.binary.BinaryMapIndexReader;
import net.osmand.router.RoutingConfiguration.RoutingMemoryLimits;
import net.osmand.util.Algorithms;

import org.apache.commons.logging.Log;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
Expand All @@ -20,22 +36,6 @@
import java.util.Set;
import java.util.TreeSet;

import org.apache.commons.logging.Log;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.osmand.NativeLibrary;
import net.osmand.PlatformUtil;
import net.osmand.binary.BinaryMapIndexReader;
import net.osmand.router.RoutingConfiguration.RoutingMemoryLimits;
import net.osmand.util.Algorithms;

/**
* Created by yurkiss on 04.03.16.
*/
Expand Down
28 changes: 14 additions & 14 deletions OsmAnd-java/src/test/java/net/osmand/router/RouteTestingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

import static net.osmand.util.RouterUtilTest.getNativeLibPath;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.osmand.NativeLibrary;
import net.osmand.binary.BinaryMapIndexReader;
import net.osmand.router.RoutingConfiguration.RoutingMemoryLimits;
import net.osmand.util.RouterUtilTest;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
Expand All @@ -15,20 +29,6 @@
import java.util.Set;
import java.util.TreeSet;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.osmand.NativeLibrary;
import net.osmand.binary.BinaryMapIndexReader;
import net.osmand.router.RoutingConfiguration.RoutingMemoryLimits;
import net.osmand.util.RouterUtilTest;

@RunWith(Parameterized.class)
public class RouteTestingTest {
private final TestEntry te;
Expand Down
5 changes: 4 additions & 1 deletion OsmAnd/build-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.browser:browser:1.0.0'
implementation 'androidx.preference:preference:1.1.0'
implementation 'androidx.preference:preference:1.2.1'
implementation 'androidx.lifecycle:lifecycle-process:2.6.0'
implementation fileTree(include: ['gnu-trove-osmand.jar', 'icu4j-49_1_patched.jar'], dir: 'libs')

Expand Down Expand Up @@ -394,6 +394,9 @@ dependencies {
implementation "androidx.car.app:app-projected:1.4.0"

implementation 'com.google.android.gms:play-services-location:21.3.0'
implementation 'com.github.KnollFrank:SettingsSearch:dd7b5520db'
// https://mvnrepository.com/artifact/com.google.guava/guava
implementation 'com.google.guava:guava:33.3.1-android'

//implementation "androidx.tracing:tracing:1.1.0"
//debugImplementation 'androidx.test:monitor:1.6.1'
Expand Down
9 changes: 4 additions & 5 deletions OsmAnd/res/layout-land/map_hud_top.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<!-- Container for top widgets: Coordinates, Map markers bar, Street name, Lanes -->
<net.osmand.plus.views.controls.VerticalWidgetPanel
Expand Down
40 changes: 40 additions & 0 deletions OsmAnd/res/layout/custom_searchpreference_fragment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/windowBackground"
android:clipToPadding="false"
android:paddingTop="?android:attr/actionBarSize">

<include
android:id="@+id/searchView"
layout="@layout/searchpreference_searchbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/searchResultsFragmentContainerView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<androidx.fragment.app.FragmentContainerView
android:id="@+id/searchResultsFragmentContainerView"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/searchView" />

<include
android:id="@+id/progressContainerCustom"
layout="@layout/progress_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:translationZ="2dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/searchResultsFragmentContainerView"
app:layout_constraintEnd_toEndOf="@+id/searchResultsFragmentContainerView"
app:layout_constraintStart_toStartOf="@+id/searchResultsFragmentContainerView"
app:layout_constraintTop_toTopOf="@+id/searchResultsFragmentContainerView" />
</androidx.constraintlayout.widget.ConstraintLayout>
16 changes: 16 additions & 0 deletions OsmAnd/res/layout/custom_searchresults_fragment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/searchResultsCustom"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:orientation="vertical">

<net.osmand.plus.widgets.TextViewEx
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/content_padding"
Expand Down
3 changes: 3 additions & 0 deletions OsmAnd/res/layout/make_better_title.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
app:srcCompat="@drawable/img_feedback" />

<net.osmand.plus.widgets.TextViewEx
android:id="@+id/titleTop"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
Expand All @@ -28,6 +29,7 @@
android:paddingEnd="@dimen/content_padding" />

<TextView
android:id="@+id/titleMiddle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/content_padding"
Expand All @@ -39,6 +41,7 @@
android:paddingEnd="@dimen/content_padding" />

<net.osmand.plus.widgets.TextViewEx
android:id="@+id/titleBottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dialog_content_margin"
Expand Down
114 changes: 58 additions & 56 deletions OsmAnd/res/layout/preference_button.xml
Original file line number Diff line number Diff line change
@@ -1,67 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color"
android:gravity="center_vertical">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color"
android:gravity="center_vertical">

<LinearLayout
android:id="@+id/selectable_list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/bottom_sheet_list_item_height"
tools:background="?android:attr/selectableItemBackground">
<LinearLayout
android:id="@+id/selectable_list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/bottom_sheet_list_item_height"
tools:background="?android:attr/selectableItemBackground">

<androidx.appcompat.widget.AppCompatImageView
android:id="@android:id/icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
tools:src="@drawable/ic_action_car_dark"
tools:tint="?colorAccent"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginStart="@dimen/content_padding" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@android:id/icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:layout_gravity="center"
android:layout_marginStart="@dimen/content_padding"
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
tools:src="@drawable/ic_action_car_dark"
tools:tint="?colorAccent" />

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginStart="@dimen/content_padding"
android:orientation="vertical">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/content_padding"
android:layout_marginLeft="@dimen/content_padding"
android:layout_weight="1"
android:orientation="vertical">

<net.osmand.plus.widgets.TextViewEx
android:id="@android:id/title"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="?colorAccent"
android:paddingStart="0dp"
android:paddingLeft="0dp"
android:paddingEnd="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
android:textSize="@dimen/default_list_text_size"
app:typefaceWeight="medium"
tools:text="Button text" />
<net.osmand.plus.widgets.TextViewEx
android:id="@android:id/title"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:ellipsize="marquee"
android:gravity="center_vertical"
android:paddingStart="0dp"
android:paddingLeft="0dp"
android:paddingEnd="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
android:singleLine="true"
android:textColor="?colorAccent"
android:textSize="@dimen/default_list_text_size"
app:typefaceWeight="medium"
tools:text="Button text" />

<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:visibility="gone"
android:background="?attr/dashboard_divider" />
<include layout="@layout/searchable_info_and_preference_path" />

</LinearLayout>
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"
android:visibility="gone" />

</LinearLayout>
</LinearLayout>

</LinearLayout>

</LinearLayout>
Loading