aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java')
-rw-r--r--app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java
new file mode 100644
index 0000000..31f74fd
--- /dev/null
+++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java
@@ -0,0 +1,41 @@
+package me.brysonsteck.wiimmfiwatcher;
+
+
+import android.os.Bundle;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.databinding.ObservableArrayList;
+import me.brysonsteck.wiimmfiwatcher.database.AppDatabase;
+import me.brysonsteck.wiimmfiwatcher.model.FriendCode;
+
+public class MainActivity extends AppCompatActivity {
+ ObservableArrayList<FriendCode> recentFCList = new ObservableArrayList<>();
+ AppDatabase database;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+// FragmentContainerView fcInput = findViewById(R.id.room_fragment);
+// this.database = Room.databaseBuilder(this, AppDatabase.class, "friend-codes-db").build();
+// new Thread(() -> {
+// try {
+// Thread.sleep(1000);
+// } catch (InterruptedException e) {
+// e.printStackTrace();
+// }
+// recentFCList.addAll(database.getFriendCodeDao().getAll());
+// }).start();
+
+
+
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .replace(R.id.friend_code_input_fragment, new WatchCodeFragment(), null)
+ .setReorderingAllowed(true)
+ .commit();
+
+
+ }
+ setContentView(R.layout.activity_main);
+ }
+} \ No newline at end of file