// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String PREFS_NAME = "MyPrefsFile";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final long TIME_DEFAULT = 0;
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_LEARN_DOUBLE_KEY = "timeLearnDouble";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_LEARN_SINGLE_KEY = "timeLearnSingle";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_PRACTICE_DOUBLE_KEY = "timePracticeDouble";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_PRACTICE_SINGLE_KEY = "timePracticeSingle";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_TEST_DOUBLE_KEY = "timeTestDouble";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_TEST_SINGLE_KEY = "timeTestSingle";


import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.widget.TextView;
import static com.aepronunciation.ipa.MainActivity.PREFS_NAME;
import static com.aepronunciation.ipa.MainActivity.TIME_DEFAULT;
import static com.aepronunciation.ipa.MainActivity.TIME_LEARN_DOUBLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_LEARN_SINGLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_PRACTICE_DOUBLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_PRACTICE_SINGLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_TEST_DOUBLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_TEST_SINGLE_KEY;
package com.aepronunciation.ipa;



public class HistoryTimeActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_history_time);

        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        // add back arrow to toolbar
        if (getSupportActionBar() != null){
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
            getSupportActionBar().setDisplayShowHomeEnabled(true);
        }

        // Create objects
        TextView tvTimeLearning = findViewById(R.id.tvTimeLearning);
        TextView tvTimeLearningSingles = findViewById(R.id.tvTimeLearningSingles);
        TextView tvTimeLearningDoubles = findViewById(R.id.tvTimeLearningDoubles);
        TextView tvTimePracticing = findViewById(R.id.tvTimePracticing);
        TextView tvTimePracticingSingles = findViewById(R.id.tvTimePracticingSingles);
        TextView tvTimePracticingDoubles = findViewById(R.id.tvTimePracticingDoubles);
        TextView tvTimeTesting = findViewById(R.id.tvTimeTesting);
        TextView tvTimeTestingSingles = findViewById(R.id.tvTimeTestingSingles);
        TextView tvTimeTestingDoubles = findViewById(R.id.tvTimeTestingDoubles);
        TextView tvTotalTime = findViewById(R.id.tvTotalTime);

        // get times from preferences
        SharedPreferences settings = getSharedPreferences(PREFS_NAME,
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String PREFS_NAME = "MyPrefsFile";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final long TIME_DEFAULT = 0;
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_LEARN_DOUBLE_KEY = "timeLearnDouble";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_LEARN_SINGLE_KEY = "timeLearnSingle";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_PRACTICE_DOUBLE_KEY = "timePracticeDouble";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_PRACTICE_SINGLE_KEY = "timePracticeSingle";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_TEST_DOUBLE_KEY = "timeTestDouble";
// 
// Path: app/src/main/java/com/aepronunciation/ipa/MainActivity.java
// public static final String TIME_TEST_SINGLE_KEY = "timeTestSingle";


// Path: app/src/main/java/com/aepronunciation/ipa/HistoryTimeActivity.java
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.widget.TextView;
import static com.aepronunciation.ipa.MainActivity.PREFS_NAME;
import static com.aepronunciation.ipa.MainActivity.TIME_DEFAULT;
import static com.aepronunciation.ipa.MainActivity.TIME_LEARN_DOUBLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_LEARN_SINGLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_PRACTICE_DOUBLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_PRACTICE_SINGLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_TEST_DOUBLE_KEY;
import static com.aepronunciation.ipa.MainActivity.TIME_TEST_SINGLE_KEY;

package com.aepronunciation.ipa;



public class HistoryTimeActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_history_time);

        Toolbar toolbar = findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        // add back arrow to toolbar
        if (getSupportActionBar() != null){
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
            getSupportActionBar().setDisplayShowHomeEnabled(true);
        }

        // Create objects
        TextView tvTimeLearning = findViewById(R.id.tvTimeLearning);
        TextView tvTimeLearningSingles = findViewById(R.id.tvTimeLearningSingles);
        TextView tvTimeLearningDoubles = findViewById(R.id.tvTimeLearningDoubles);
        TextView tvTimePracticing = findViewById(R.id.tvTimePracticing);
        TextView tvTimePracticingSingles = findViewById(R.id.tvTimePracticingSingles);
        TextView tvTimePracticingDoubles = findViewById(R.id.tvTimePracticingDoubles);
        TextView tvTimeTesting = findViewById(R.id.tvTimeTesting);
        TextView tvTimeTestingSingles = findViewById(R.id.tvTimeTestingSingles);
        TextView tvTimeTestingDoubles = findViewById(R.id.tvTimeTestingDoubles);
        TextView tvTotalTime = findViewById(R.id.tvTotalTime);

        // get times from preferences
        SharedPreferences settings = getSharedPreferences(PREFS_NAME,
                MODE_PRIVATE);