From 196e54434e862d944743dc8a169ed42e6b35524c Mon Sep 17 00:00:00 2001 From: galeen <2math@mail.bg> Date: Wed, 13 Mar 2019 11:08:05 +0200 Subject: [PATCH] Important need update on app sides ! update to has design library for snackbar fix --- core_library/build.gradle | 2 +- .../android/base_library/utils/DialogUtils.java | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core_library/build.gradle b/core_library/build.gradle index 74f028c..7ef48d0 100644 --- a/core_library/build.gradle +++ b/core_library/build.gradle @@ -44,7 +44,7 @@ dependencies { compileOnly "com.android.support:appcompat-v7:${rootProject.ext.supportLibraryVersion}" compileOnly "com.android.support:support-v4:${rootProject.ext.supportLibraryVersion}" // api "com.android.support:support-v13:${rootProject.ext.supportLibraryVersion}" - compileOnly "com.android.support:design:${rootProject.ext.supportLibraryVersion}" + api "com.android.support:design:${rootProject.ext.supportLibraryVersion}" compileOnly "com.android.support:exifinterface:${rootProject.ext.supportLibraryVersion}" compileOnly 'com.squareup.picasso:picasso:2.5.2' diff --git a/core_library/src/main/java/com/futurist_labs/android/base_library/utils/DialogUtils.java b/core_library/src/main/java/com/futurist_labs/android/base_library/utils/DialogUtils.java index 2b0d4b1..4d4d556 100644 --- a/core_library/src/main/java/com/futurist_labs/android/base_library/utils/DialogUtils.java +++ b/core_library/src/main/java/com/futurist_labs/android/base_library/utils/DialogUtils.java @@ -151,8 +151,8 @@ public static void showInfoSnackbar(Activity activity, int message, String msg, // Change the Snackbar default text color View snackbarView = snackbar.getView(); if (colMsg != 0) { -// TextView tv = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text); -// tv.setTextColor(colMsg); + TextView tv = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text); + tv.setTextColor(colMsg); } // Change the Snackbar default background color if (colBkg != 0) @@ -183,8 +183,10 @@ public static void showInfoSnackbar(View view, String message, int messageRes, i // Change the Snackbar default text color View snackbarView = snackbar.getView(); if (colMsg != 0) { // TODO: 2/22/2019 try to find a fix on this -// TextView tv = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text); -// tv.setTextColor(colMsg); + TextView tv = (TextView) snackbarView.findViewById( +// com.google.android.material.R.id.snackbar_text); + android.support.design.R.id.snackbar_text); + tv.setTextColor(colMsg); } // Change the Snackbar default background color if (colBkg != 0)