Timelife-Project/timelife/app/src/main/java/com/henriktk/timer_v2/MainActivity.java
/**
     * Creates a new timer.
     * @param name Name of the new timer.
     */
Creates a new timer.
@param name Name of the new timer.
Creates a new timer . @param name Name of the new timer .
private void newTimer(String name){
        Log.d("New Timer", "Adding new timer");
        Timer t = new Timer(name, 0);
        t.setId((int) repo.insert(t));
        timers.add(t);
        mAdapter.notifyItemInserted(mAdapter.getItemCount());
    }
private void newTimer ( String name ) { Log . d ( "New Timer" , "Adding new timer" ) ; Timer t = new Timer ( name , 0 ) ; t . setId ( ( int ) repo . insert ( t ) ) ; timers . add ( t ) ; mAdapter . notifyItemInserted ( mAdapter . getItemCount ( ) ) ; }
Creates a new timer.
Creates a new timer .