package Ġcom . ta o . scan qr . feature . tabs . create . barcode Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . core . widget . add TextChanged Listener Ċ import Ġcom . ta o . scan qr . R Ċ import Ġcom . ta o . scan qr . extension . isNotBlank Ċ import Ġcom . ta o . scan qr . extension . text String Ċ import Ġcom . ta o . scan qr . feature . tabs . create . Base Create Barcode Fragment Ċ import Ġcom . ta o . scan qr . model . schema . Other Ċ import Ġcom . ta o . scan qr . model . schema . Schema Ċ import Ġkotlinx . android . synt hetic . main . fragment _ create _ cod ab ar .* Ċ Ċ class ĠCreate Cod ab ar Fragment Ġ: ĠBase Create Barcode Fragment () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . fragment _ create _ cod ab ar , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġedit _ text . request Focus () ĊĠĠĠĠĠĠĠ Ġedit _ text . add TextChanged Listener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparent Activity . is Create Barcode Button Enabled Ġ= Ġedit _ text . isNotBlank () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Barcode Schema (): ĠSchema Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠOther ( edit _ text . text String ) ĊĠĠĠ Ġ} Ċ }