New ringtone.playback package, tidy up stopwatch package

This commit is contained in:
Phillip Hsu
2016-09-21 17:53:15 -07:00
parent e38774d45e
commit 24dd975536
26 changed files with 48 additions and 26 deletions
@@ -13,6 +13,8 @@ import com.philliphsu.clock2.ChronometerNotificationService;
import com.philliphsu.clock2.MainActivity;
import com.philliphsu.clock2.R;
import com.philliphsu.clock2.ChronometerDelegate;
import com.philliphsu.clock2.stopwatch.data.AsyncLapsTableUpdateHandler;
import com.philliphsu.clock2.stopwatch.ui.StopwatchFragment;
public class StopwatchNotificationService extends ChronometerNotificationService {
private static final String TAG = "StopwatchNotifService";
@@ -1,10 +1,12 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.data;
import android.content.Context;
import android.content.Intent;
import com.philliphsu.clock2.AsyncDatabaseTableUpdateHandler;
import com.philliphsu.clock2.list.ScrollHandler;
import com.philliphsu.clock2.stopwatch.Lap;
import com.philliphsu.clock2.stopwatch.StopwatchNotificationService;
/**
* Created by Phillip Hsu on 8/9/2016.
@@ -1,8 +1,9 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.data;
import android.database.Cursor;
import com.philliphsu.clock2.model.BaseItemCursor;
import com.philliphsu.clock2.stopwatch.Lap;
/**
* Created by Phillip Hsu on 8/8/2016.
@@ -1,8 +1,11 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.data;
import android.content.Context;
import com.philliphsu.clock2.model.SQLiteCursorLoader;
import com.philliphsu.clock2.stopwatch.Lap;
import com.philliphsu.clock2.stopwatch.data.LapCursor;
import com.philliphsu.clock2.stopwatch.data.LapsTableManager;
/**
* Created by Phillip Hsu on 8/9/2016.
@@ -1,4 +1,4 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.data;
import android.database.sqlite.SQLiteDatabase;
@@ -1,10 +1,11 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.data;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import com.philliphsu.clock2.model.DatabaseTableManager;
import com.philliphsu.clock2.stopwatch.Lap;
/**
* Created by Phillip Hsu on 8/8/2016.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.ui;
import android.annotation.TargetApi;
import android.content.Context;
@@ -1,4 +1,4 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.ui;
import android.view.View;
import android.view.ViewGroup;
@@ -6,6 +6,7 @@ import android.widget.TextView;
import com.philliphsu.clock2.list.BaseViewHolder;
import com.philliphsu.clock2.R;
import com.philliphsu.clock2.stopwatch.Lap;
import butterknife.Bind;
@@ -1,9 +1,11 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.ui;
import android.view.ViewGroup;
import com.philliphsu.clock2.list.BaseCursorAdapter;
import com.philliphsu.clock2.list.OnListItemInteractionListener;
import com.philliphsu.clock2.stopwatch.Lap;
import com.philliphsu.clock2.stopwatch.data.LapCursor;
/**
* Created by Phillip Hsu on 8/9/2016.
@@ -1,4 +1,4 @@
package com.philliphsu.clock2.stopwatch;
package com.philliphsu.clock2.stopwatch.ui;
import android.animation.Animator;
import android.animation.ObjectAnimator;
@@ -21,6 +21,10 @@ import android.widget.SeekBar;
import com.philliphsu.clock2.R;
import com.philliphsu.clock2.list.RecyclerViewFragment;
import com.philliphsu.clock2.stopwatch.Lap;
import com.philliphsu.clock2.stopwatch.StopwatchNotificationService;
import com.philliphsu.clock2.stopwatch.data.LapCursor;
import com.philliphsu.clock2.stopwatch.data.LapsCursorLoader;
import com.philliphsu.clock2.util.ProgressBarUtils;
import java.lang.ref.WeakReference;
@@ -39,9 +43,9 @@ public class StopwatchFragment extends RecyclerViewFragment<
private static final String TAG = "StopwatchFragment";
// Exposed for StopwatchNotificationService
static final String KEY_START_TIME = "start_time";
static final String KEY_PAUSE_TIME = "pause_time";
static final String KEY_CHRONOMETER_RUNNING = "chronometer_running";
public static final String KEY_START_TIME = "start_time";
public static final String KEY_PAUSE_TIME = "pause_time";
public static final String KEY_CHRONOMETER_RUNNING = "chronometer_running";
private ObjectAnimator mProgressAnimator;
private SharedPreferences mPrefs;