package Ġcom . q ing me i 2 . rx image picker . core Ċ Ċ import Ġandroid . app . Activity Ċ import Ġcom . q ing me i 2 . rx image picker . entity . Config Provider Ċ import Ġcom . q ing me i 2 . rx image picker . ui . Activity Picker ViewController Ċ import Ġcom . q ing me i 2 . rx image picker . ui . IC ustom Picker Configuration Ċ Ċ class ĠImage Picker Controller ( private Ġval Ġconfig Provider : ĠConfig Provider ) Ġ{ ĊĊĠĠĠ Ġfun Ġdisplay () Ġ{ ĊĠĠĠĠĠĠĠ Ġconfig Provider . config ?. on Display () ĊĊĠĠĠĠĠĠĠ Ġif Ġ(! config Provider . as Fragment ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdisplay Picker View As Activity ( config Provider . config ) ĊĠĠĠĠĠĠĠ Ġelse ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdisplay Picker View As Fragment ( config Provider . config ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġdisplay Picker View As Activity ( configuration : ĠI Custom Picker Configuration ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġactivity Holder Ġ= ĠActivity Picker ViewController . instance ĊĠĠĠĠĠĠĠ Ġactivity Holder . set Activity Class ( config Provider . component Clazz . java Ġas ĠClass < out ĠActivity >) ĊĠĠĠĠĠĠĠ Ġactivity Holder . display ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconfig Provider . fragment Activity , Ġconfig Provider . container View Id , Ġconfiguration ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġdisplay Picker View As Fragment ( configuration : ĠI Custom Picker Configuration ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġconfig Provider . picker View . display ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconfig Provider . fragment Activity , Ġconfig Provider . container View Id , Ġconfiguration ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ