Updated custom tabs

pull/162/head
M66B 5 years ago
parent 43302faf72
commit 2e14454e8d

@ -173,7 +173,10 @@ dependencies {
def coordinatorlayout_version = "1.1.0-beta01"
def constraintlayout_version = "2.0.0-beta2"
def material_version = "1.1.0-alpha10"
def browser_version = "1.0.0"
def browser_version = "1.2.0-alpha07"
def lbm_version = "1.0.0"
def swiperefresh_version = "1.0.0"
def documentfile_version = "1.0.1"
def lifecycle_version = "2.1.0"
def room_version = "2.2.0-beta01"
def paging_version = "2.1.0"
@ -219,6 +222,15 @@ dependencies {
// https://mvnrepository.com/artifact/androidx.browser/browser
implementation "androidx.browser:browser:$browser_version"
// https://mvnrepository.com/artifact/androidx.localbroadcastmanager/localbroadcastmanager
implementation "androidx.localbroadcastmanager:localbroadcastmanager:$lbm_version"
// https://mvnrepository.com/artifact/androidx.swiperefreshlayout/swiperefreshlayout
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swiperefresh_version"
// https://mvnrepository.com/artifact/androidx.documentfile/documentfile
implementation "androidx.documentfile:documentfile:$documentfile_version"
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-runtime
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-livedata
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-livedata-core

@ -201,6 +201,7 @@ public class Helper {
} else {
// https://developer.chrome.com/multidevice/android/customtabs
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
builder.setNavigationBarColor(resolveColor(context, R.attr.colorPrimaryDark));
builder.setToolbarColor(resolveColor(context, R.attr.colorPrimary));
CustomTabsIntent customTabsIntent = builder.build();

Loading…
Cancel
Save