package Ġcom . ans or od . actions and groups Ċ Ċ import Ġandroid . content . Context Ċ Ċ object ĠPreferences Helper Ġ{ ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠP REFER ENCES _ NAME Ġ= Ġ" PREFER ENCES _ NAME _ NOTIFICATION " ĊĠĠĠ Ġprivate Ġconst Ġval ĠKEY _ T AP _ TIMESTAMP Ġ= Ġ" KEY _ T AP _ TIMESTAMP " ĊĊĠĠĠ Ġfun Ġstore Timestamp ( context : ĠContext , Ġtimestamp : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġprefs Ġ= Ġcontext . get SharedPreferences ( PREFER ENCES _ NAME , ĠContext . MODE _ PRIVATE ) ĊĠĠĠĠĠĠĠ Ġprefs . edit (). put Long ( KEY _ T AP _ TIMESTAMP , Ġtimestamp ). apply () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠgetLast Tap Timestamp ( context : ĠContext ): ĠLong Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġprefs Ġ= Ġcontext . get SharedPreferences ( PREFER ENCES _ NAME , ĠContext . MODE _ PRIVATE ) ĊĠĠĠĠĠĠĠ Ġreturn Ġprefs . getLong ( KEY _ T AP _ TIMESTAMP , Ġ- 1 ) ĊĠĠĠ Ġ} Ċ }