Update support library version
This commit is contained in:
parent
30d9e5ea55
commit
77ebf1cdf3
5 changed files with 12 additions and 49 deletions
|
@ -142,12 +142,12 @@ dependencies {
|
|||
implementation( "org.jetbrains.kotlin:kotlin-stdlib:1.2.71") {
|
||||
exclude group: 'org.jetbrains', module: 'annotations'
|
||||
}
|
||||
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
|
||||
implementation 'com.android.support:design:28.0.0-rc01'
|
||||
implementation 'com.android.support:customtabs:28.0.0-rc01'
|
||||
implementation 'com.android.support:support-annotations:28.0.0-rc01'
|
||||
implementation 'com.android.support:appcompat-v7:28.0.0'
|
||||
implementation 'com.android.support:design:28.0.0'
|
||||
implementation 'com.android.support:customtabs:28.0.0'
|
||||
implementation 'com.android.support:support-annotations:28.0.0'
|
||||
implementation 'commons-logging:commons-logging-api:1.1'
|
||||
implementation 'com.android.support:recyclerview-v7:28.0.0-rc01'
|
||||
implementation 'com.android.support:recyclerview-v7:28.0.0'
|
||||
implementation 'com.vividsolutions:jts-core:1.14.0'
|
||||
implementation("com.github.HITGIF:TextFieldBoxes:1.4.4") {
|
||||
exclude group: 'com.android.support'
|
||||
|
|
|
@ -456,12 +456,12 @@ dependencies {
|
|||
implementation project(path: ':OsmAnd-java', configuration: 'android')
|
||||
implementation project(':OsmAnd-api')
|
||||
implementation 'com.android.support:multidex:1.0.1'
|
||||
implementation 'com.android.support:gridlayout-v7:27.1.1'
|
||||
implementation 'com.android.support:cardview-v7:27.1.1'
|
||||
implementation 'com.android.support:appcompat-v7:27.1.1'
|
||||
implementation 'com.android.support:design:27.1.1'
|
||||
implementation 'com.android.support:customtabs:27.1.1'
|
||||
implementation 'com.android.support:preference-v7:27.1.1'
|
||||
implementation 'com.android.support:gridlayout-v7:28.0.0'
|
||||
implementation 'com.android.support:cardview-v7:28.0.0'
|
||||
implementation 'com.android.support:appcompat-v7:28.0.0'
|
||||
implementation 'com.android.support:design:28.0.0'
|
||||
implementation 'com.android.support:customtabs:28.0.0'
|
||||
implementation 'com.android.support:preference-v7:28.0.0'
|
||||
implementation fileTree(include: ['gnu-trove-osmand.jar', 'icu4j-49_1_patched.jar'], dir: 'libs')
|
||||
|
||||
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:background="?attr/bg_color"
|
||||
app:itemBackground="?attr/bg_color"
|
||||
app:labelVisibilityMode="labeled"
|
||||
app:itemIconTint="@color/bottom_navigation_color_selector_light"
|
||||
app:itemTextColor="@color/bottom_navigation_color_selector_light"
|
||||
app:menu="@menu/map_markers_bottom_navigation"/>
|
||||
|
|
|
@ -23,7 +23,6 @@ import android.widget.ProgressBar;
|
|||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
import net.osmand.Location;
|
||||
import net.osmand.data.LatLon;
|
||||
import net.osmand.plus.LockableViewPager;
|
||||
|
@ -41,7 +40,6 @@ import net.osmand.plus.mapmarkers.DirectionIndicationDialogFragment.DirectionInd
|
|||
import net.osmand.plus.mapmarkers.OptionsBottomSheetDialogFragment.MarkerOptionsFragmentListener;
|
||||
import net.osmand.plus.mapmarkers.OrderByBottomSheetDialogFragment.OrderByFragmentListener;
|
||||
import net.osmand.plus.mapmarkers.SaveAsTrackBottomSheetDialogFragment.MarkerSaveAsTrackFragmentListener;
|
||||
import net.osmand.plus.widgets.tools.BottomNavigationViewHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -171,7 +169,6 @@ public class MapMarkersDialogFragment extends android.support.v4.app.DialogFragm
|
|||
|
||||
TextView toolbarTitle = mainView.findViewById(R.id.map_markers_toolbar_title);
|
||||
bottomNav = mainView.findViewById(R.id.map_markers_bottom_navigation);
|
||||
BottomNavigationViewHelper.disableShiftMode(bottomNav);
|
||||
toolbarTitle.setTextColor(ContextCompat.getColor(getContext(), lightTheme ? R.color.active_buttons_and_links_text_light : R.color.text_color_primary_dark));
|
||||
bottomNav.setItemIconTintList(ContextCompat.getColorStateList(getContext(), lightTheme ? R.color.bottom_navigation_color_selector_light : R.color.bottom_navigation_color_selector_dark));
|
||||
bottomNav.setItemTextColor(ContextCompat.getColorStateList(getContext(), lightTheme ? R.color.bottom_navigation_color_selector_light : R.color.bottom_navigation_color_selector_dark));
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
package net.osmand.plus.widgets.tools;
|
||||
|
||||
import android.support.design.internal.BottomNavigationItemView;
|
||||
import android.support.design.internal.BottomNavigationMenuView;
|
||||
import android.support.design.widget.BottomNavigationView;
|
||||
import android.util.Log;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
public class BottomNavigationViewHelper {
|
||||
|
||||
private static final String TAG = "BNVHelper";
|
||||
|
||||
public static void disableShiftMode(BottomNavigationView view) {
|
||||
BottomNavigationMenuView menuView = (BottomNavigationMenuView) view.getChildAt(0);
|
||||
try {
|
||||
Field shiftingMode = menuView.getClass().getDeclaredField("mShiftingMode");
|
||||
shiftingMode.setAccessible(true);
|
||||
shiftingMode.setBoolean(menuView, false);
|
||||
shiftingMode.setAccessible(false);
|
||||
for (int i = 0; i < menuView.getChildCount(); i++) {
|
||||
BottomNavigationItemView item = (BottomNavigationItemView) menuView.getChildAt(i);
|
||||
// noinspection RestrictedApi
|
||||
item.setShiftingMode(false);
|
||||
// set once again checked value, so view will be updated
|
||||
// noinspection RestrictedApi
|
||||
item.setChecked(item.getItemData().isChecked());
|
||||
}
|
||||
} catch (NoSuchFieldException e) {
|
||||
Log.e(TAG, "Unable to get shift mode field", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
Log.e(TAG, "Unable to change value of shift mode", e);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue