Refactor Database, Add Type parameters, Refactor ExtraFields

This commit is contained in:
J-Jamet committed 2018-03-29 00:35:25 +02:00
1 parent 304a5e946d
commit 94ed03ce35
29 files changed
+585 -284

No files matched your search

@@ -70,11 +70,11 @@ public class RoundsPreferenceDialogFragmentCompat extends PreferenceDialogFragme
protected void onBindDialogView(View view) {
super.onBindDialogView(view);
mRoundsView = (TextView) view.findViewById(R.id.rounds);
mRoundsView = view.findViewById(R.id.rounds);
// Get the time from the related Preference
Database db = App.getDB();
mPM = db.pm;
mPM = db.getPm();
long numRounds = mPM.getNumRounds();
DialogPreference preference = getPreference();
@@ -98,9 +98,7 @@ public class RoundsPreferenceDialogFragmentCompat extends PreferenceDialogFragme
@Override
public void run() {
if ( mSuccess ) {
} else {
if (!mSuccess) {
displayMessage(mCtx);
mPM.setNumRounds(mOldRounds);
}