package Ġcom . golden pie devs . schedule . app . ui . preference Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . golden pie devs . schedule . app . R Ċ import Ġcom . golden pie devs . schedule . app . ui . base . Base Activity Ċ import Ġcom . r 0 ad k ll . sl idr . Sl idr Ċ Ċ class ĠPreference Activity Ġ: ĠBase Activity < Preference Presenter , ĠPreference View >(), ĠPreference View Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Presenter Child (): ĠPreference Presenter Ġ= Ġpresenter ĊĊĠĠĠ Ġoverride Ġfun ĠgetActivity Layout (): ĠInt Ġ= ĠR . layout . preference _ activity _ layout ĊĊĠĠĠ Ġprivate Ġvar Ġpresenter Ġ= ĠPreference Implementation () ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ ĠSl idr . attach ( this ) ĊĊĠĠĠĠĠĠĠ Ġsupport ActionBar ?. apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Display Show Title Enabled ( true ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġwith ( presenter ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġattach View ( this @ Preference Activity ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Support FragmentManager ( support FragmentManager ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġopen Notification Preference () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Back Pressed () Ġ{ ĊĠĠĠĠĠĠĠ Ġpresenter . on Back Pressed () ĊĠĠĠ Ġ} Ċ }