package Ġcom . gmail . uia 0 5 9 4 6 6 . lis ka . screen Ċ Ċ import Ġandroidx . test . espress o . Esp ress o Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . Esp ress o . open ActionBar Overflow Or Options Menu Ċ import Ġandroidx . test . espress o . action . View Actions Ċ import Ġandroidx . test . espress o . action . View Actions .* Ċ import Ġandroidx . test . espress o . matcher . View Matchers Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Text Ċ import Ġandroidx . test . platform . app . Instrumentation Registry Ċ import Ġandroidx . test . uia utom ator . Ui Device Ċ import Ġcom . gmail . uia 0 5 9 4 6 6 . lis ka . Base Screen Ċ import Ġcom . gmail . uia 0 5 9 4 6 6 . lis ka . R Ċ import Ġcom . gmail . uia 0 5 9 4 6 6 . lis ka . lists . sort order . SortOrder Ċ import Ġjava . lang . Thread . sleep Ċ Ċ class ĠRename List Screen ( on : ĠUi Device ) Ġ: ĠBase Screen ( on ) Ġ{ ĊĠĠĠ Ġoverride Ġval Ġcontent Layout : ĠInt = ĠR . id . edit Text ĊĠĠĠ Ġoverride Ġfun Ġcheck Default Layout () Ġ{ ĊĠĠĠĠĠĠĠ ĠTODO (" Not Ġyet Ġimplemented ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġreplace Text ( text : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Id ( edit Text )). perform ( clear Text ()) ĊĠĠĠĠĠĠĠ Ġsleep ( 2 0 0 ) ĊĊĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Id ( edit Text )). perform ( type Text ( text )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Ok () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Text ( ok Button )). perform ( click ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġtitle Ġ= ĠR . string . list _ name _ dialog ĊĠĠĠ Ġprivate Ġval Ġedit Text Ġ= ĠR . id . edit Text ĊĠĠĠ Ġprivate Ġval Ġok Button Ġ= Ġandroid . R . string . ok ĊĊĊĊĠĠĠ Ġcompanion Ġobject { ĊĠĠĠĠĠĠĠ Ġfun Ġcreate And Wait ( device : Ui Device ): Rename List Screen { ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġscreen = Rename List Screen ( device ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġscreen . waitFor Screen ToBe Displayed () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġscreen ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊ Ċ }