package Ġcom . kube k bre ha . instagram bot . walk through Activity Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . WindowManager Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . view pager . widget . ViewPager Ċ import Ġcom . kube k bre ha . instagram bot . login Activity . Login Activity Ċ import Ġcom . kube k bre ha . instagram bot . R Ċ import Ġcom . kube k bre ha . instagram bot . walk through Activity . indicator Dot s . W orm Dot s Indicator ĊĊ Ċ class ĠWalk through Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġslider Adapter : ĠWalk through Slide Adapter ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġprefs Ġ= Ġget SharedPreferences (" walk through ", ĠContext . MODE _ PRIVATE ) ĊĠĠĠĠĠĠĠ Ġval Ġwalk th ro ught ed Ġ= Ġprefs . getBoolean (" done ", Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġif ( walk th ro ught ed ){ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġintent Ġ= ĠIntent ( this , ĠLogin Activity :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠstartActivity ( intent ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Pending Transition ( android . R . anim . fade _ in , Ġandroid . R . anim . fade _ out ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfinish () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ walk through ) ĊĊĠĠĠĠĠĠĠ Ġ// hide Ġstatus Ġbar ĊĠĠĠĠĠĠĠ Ġwindow . add Flags ( WindowManager . LayoutParams . FLAG _ TRANSL UC ENT _ STATUS ) ĊĊĠĠĠĠĠĠĠ Ġval Ġw orm Dot s Indicator Ġ= ĠfindViewById < W orm Dot s Indicator >( R . id . activity _ walk through _ w orm Dot s Layout ) ĊĠĠĠĠĠĠĠ Ġval Ġview Pager Ġ= ĠfindViewById < ViewPager >( R . id . activity _ walk through _ view Pager ) ĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠWalk through Slide Adapter ( this ) ĊĠĠĠĠĠĠĠ Ġview Pager . adapter Ġ= Ġadapter ĊĠĠĠĠĠĠĠ Ġw orm Dot s Indicator . set ViewPager ( view Pager ) ĊĊĠĠĠ Ġ} Ċ Ċ } ĊĊ