aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java5
-rw-r--r--app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java10
-rw-r--r--app/src/main/res/layout/activity_main.xml2
-rw-r--r--app/src/main/res/layout/watch_code_fragment.xml11
-rw-r--r--app/src/main/res/values-es/strings.xml32
-rw-r--r--app/src/main/res/values-pt/strings.xml32
-rw-r--r--app/src/main/res/values/strings.xml2
7 files changed, 85 insertions, 9 deletions
diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java
index bb7663c..e2c97db 100644
--- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java
+++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/MainActivity.java
@@ -6,14 +6,11 @@ import android.view.View;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
-import androidx.databinding.ObservableArrayList;
import androidx.room.Room;
import me.brysonsteck.wiimmfiwatcher.database.AppDatabase;
-import me.brysonsteck.wiimmfiwatcher.model.FriendCode;
public class MainActivity extends AppCompatActivity {
- ObservableArrayList<FriendCode> recentFCList = new ObservableArrayList<>();
AppDatabase database;
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@@ -29,8 +26,6 @@ public class MainActivity extends AppCompatActivity {
.replace(R.id.friend_code_input_fragment, new WatchCodeFragment(), null)
.setReorderingAllowed(true)
.commit();
-
-
}
database = Room.databaseBuilder(this, AppDatabase.class, "friend-codes-db").build();
diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
index 93165df..1b285b9 100644
--- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
+++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
@@ -1,15 +1,14 @@
package me.brysonsteck.wiimmfiwatcher;
import android.content.Intent;
-import android.content.res.Configuration;
-import android.graphics.Color;
import android.os.Bundle;
import android.transition.TransitionInflater;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
-import android.widget.LinearLayout;
+import android.widget.ProgressBar;
+import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -151,6 +150,11 @@ public class WatchCodeFragment extends Fragment {
errorText.setText("");
viewModel.saveFriendCode("", friendCode.getText().toString());
intent.putExtra("friendCode", friendCode.getText().toString());
+ ProgressBar p = view.findViewById(R.id.progressBar1);
+ if(p.getVisibility() != View.GONE){ // check if it is visible
+ p.setVisibility(View.GONE); // if not set it to visible
+ watchButton.setVisibility(View.VISIBLE); // use 1 or 2 as parameters.. arg0 is the view(your button) from the onclick listener
+ }
startActivity(intent);
}
}
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 08083c2..bf5adcd 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -12,6 +12,8 @@
android:layout_height="match_parent"
android:fitsSystemWindows="true">
+
+
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/watch_code_fragment.xml b/app/src/main/res/layout/watch_code_fragment.xml
index 84b344d..7bfe60a 100644
--- a/app/src/main/res/layout/watch_code_fragment.xml
+++ b/app/src/main/res/layout/watch_code_fragment.xml
@@ -7,6 +7,17 @@
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="15dp">
+ <ProgressBar
+ android:id="@+id/progressBar1"
+ style="?android:attr/progressBarStyleLarge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:visibility="gone"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
new file mode 100644
index 0000000..af5b148
--- /dev/null
+++ b/app/src/main/res/values-es/strings.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Wiimmfi</string>
+ <string name="about_fragment_title">Acerca de Wiimmfi Watcher</string>
+ <string name="about_me">¡Hola! Mi nombre es Bryson Steck. Soy un estudiante de Ciencias de la Computación. Esta es mi primera aplicación oficial que mantengo. Todo este asunto de la \"aplicación en Google Play Store\" es nuevo para mí, así que tenga paciencia mientras estoy aprendiendo a mantener algo como esto. ¡Espero que disfrutes!</string>
+ <string name="about_watcher">Wiimmfi Watcher es una aplicación NO OFICIAL creada para un proyecto escolar que he decidido convertir en una aplicación completa. Esta aplicación se creó para proporcionar un acceso directo fácil al sitio web de Wiimmfi y mostrar datos de una manera compatible con dispositivos móviles, ya que el sitio web oficial no tiene una versión compatible con dispositivos móviles. Gratis y de código abierto, puedes ver tus partidos de Wiimmfi en tu teléfono de una manera rápida y sencilla.</string>
+ <string name="github">Todo el código de este proyecto es de código abierto en mi repositorio de GitHub <a href='https://github.com/brysonsteck/wiimmfi-watcher/tree/master'>aquí.</a> Usted es libre de usar este código y ampliarlo bajo la <a href='https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE'>Licencia Pública General de GNU</a> (Versión 3).</string>
+ <string name="watch">Mirar</string>
+ <string name="watching">Viendo %1$s</string>
+ <string name="enter_fc">Introduce un código de amigo para ver</string>
+ <string name="recent_fc">Códigos de amigos vistos recientemente:</string>
+ <string name="version_header">Versión</string>
+ <string name="version">Está ejecutando la versión %1$s de Wiimmfi Watcher. Puede ver las notas de la versión de esta versión <![CDATA[<a href="https://github.com/brysonsteck/wiimmfi-watcher/releases/">aquí.</a>]]></string>
+ <string name="about_watcher_header">Acerca de Wiimmfi Watcher</string>
+ <string name="about_me_header">Acerca de mí</string>
+ <string name="contact_header">Contactar</string>
+ <string name="bugs_header">Errores y comentarios</string>
+ <string name="license_header">Licencia y Copyright</string>
+ <string name="player_details">Detalles del jugador</string>
+ <string name="friend_code">Códigos de amigo</string>
+ <string name="roles">Roles</string>
+ <string name="login_regions">Regiones de inicio de sesión</string>
+ <string name="room_match">Habitación, Partido</string>
+ <string name="world">Mundo</string>
+ <string name="conn_fail">Conexión fallida</string>
+ <string name="error_fc_syntax">ERROR: Inserta un código de amigo en el formato XXXX-XXXX-XXXX</string>
+ <string name="header_null_error">Este reproductor no está en línea, no está dentro de una habitación o no existe. Haga clic en el botón Actualizar para volver a intentarlo, o haga clic en el botón Atrás para ingresar un código de amigo diferente.</string>
+ <string name="jsoup_error">¡Ups! Wiimmfi Watcher no pudo conectarse a los servidores de Wiimmfi. Esto podría deberse a que no está conectado a Internet, pero podría ser otra cosa. Aquí estaba el error:\n\n%1$s\n\nSi el error es del tipo \"Unable to resolve host\" o \"Timeout\", es probable que tenga problemas con Internet. Asegúrate de estar conectado a Internet y luego haz clic en el botón Actualizar o presiona Atrás para ver un nuevo código de amigo.\n\nSi el error es diferente a eso o si el error persiste, asegúrese de que el sitio web de Wiimmfi se esté ejecutando. De lo contrario, haga una captura de pantalla de esta pantalla y envíe un informe de error haciendo clic en el icono Acerca de en la página principal.</string>
+ <string name="bugs">Hablando de errores, ¿encontraste un error? ¿Quieres darnos tu opinión sobre la aplicación? ¡Me encantaría escucharlo! Primero, asegúrese de que el problema que encontró no esté en mi <a href='https://github.com/brysonsteck/wiimmfi-watcher/blob/master/TODO.md'>lista de tareas pendientes.</a> Es posible que ya sea consciente de ello o que esté trabajando en ello. Si su problema no se aborda en la lista de tareas pendientes, puede crear un problema en mi repositorio de GitHub <a href='https://github.com/brysonsteck/wiimmfi-watcher/issues'>aquí.</a> Si no sabe cómo usar GitHub, puede completar este <a href='https://docs.google.com/forms/d/e/1FAIpQLSd6qCONAP2tsbHPgzu_CdZcHVHL5nx7q0XFqrVfExEc84kqUQ/viewform?usp=sf_link'>formulario de Google.</a></string>
+ <string name="license">&#169; Copyright 2021 Bryson Steck Wiimmfi Watcher está disponible bajo la Licencia Pública General de GNU Versión 3. Puede ver la licencia <a href="https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE">aquí.</a>\n\nWiimmfi Watcher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nWiimmfi Watcher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with Wiimmfi Watcher. If not, see &lt;<a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>&gt;.</string>
+ <string name="contact">Si desea comunicarse conmigo por cualquier motivo que no esté relacionado con los informes de errores o esta aplicación en general, puede comunicarse conmigo por correo electrónico a <a href='mailto:steck.bryson@gmail.com'>steck.bryson@gmail.com</a> o en Discord a bryzinga#9971.</string>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
new file mode 100644
index 0000000..6426058
--- /dev/null
+++ b/app/src/main/res/values-pt/strings.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Wiimmfi</string>
+ <string name="about_fragment_title">Sobre Wiimmfi Watcher</string>
+ <string name="about_me">Olá! Meu nome é Bryson Steck. Eu sou um estudante de Ciência da Computação. Este é meu primeiro aplicativo oficial que mantenho. Toda essa coisa de \"aplicativo na Google Play Store\" é nova para mim, então, seja paciente, pois estou aprendendo a manter algo assim. Espero que você goste!</string>
+ <string name="about_watcher">Wiimmfi Watcher é um aplicativo NÃO OFICIAL criado para um projeto escolar que decidi transformar em um aplicativo completo. Este aplicativo foi feito para fornecer um atalho fácil para o site Wiimmfi e exibir os dados de uma forma amigável para mobile, uma vez que o site oficial não possui uma versão mobile friendly. Gratuito e de código aberto, você pode assistir às partidas do Wiimmfi no seu telefone de maneira rápida e fácil.</string>
+ <string name="watch">Ver</string>
+ <string name="watching">Assistindo %1$s</string>
+ <string name="enter_fc">Digite um código de amigo para assistir</string>
+ <string name="recent_fc">Códigos de amigos assistidos recentemente:</string>
+ <string name="version_header">Versão</string>
+ <string name="version">Você está executando o Wiimmfi Watcher versão %1$s. Você pode ver as notas de lançamento desta versão <![CDATA[<a href="https://github.com/brysonsteck/wiimmfi-watcher/releases/">aqui.</a>]]></string>
+ <string name="about_watcher_header">Sobre Wiimmfi Watcher</string>
+ <string name="about_me_header">Sobre mim</string>
+ <string name="contact_header">Contato</string>
+ <string name="bugs_header">Bugs e feedback</string>
+ <string name="license_header">Licença e Copyright</string>
+ <string name="player_details">Detalhes do jogador</string>
+ <string name="friend_code">Códigos de Amigo</string>
+ <string name="roles">Funções</string>
+ <string name="login_regions">Regiões de login</string>
+ <string name="room_match">Sala, jogo</string>
+ <string name="world">Mundo</string>
+ <string name="conn_fail">Falha de conexão</string>
+ <string name="error_fc_syntax">ERRO: Insira um código de amigo no formato XXXX-XXXX-XXXX</string>
+ <string name="header_null_error">Este jogador não está online, não está dentro de uma sala ou não existe. Clique no botão Atualizar para tentar novamente ou clique no botão Voltar para inserir um código de amigo diferente.</string>
+ <string name="jsoup_error">Opa! Wiimmfi Watcher não conseguiu se conectar aos servidores Wiimmfi. Pode ser que você não esteja conectado à Internet, mas pode ser outra coisa. Aqui estava o erro:\n\n%1$s\n\nSe o erro for semelhante a \"Unable to resolve host\" ou \"Timeout\", provavelmente você está tendo problemas de Internet. Certifique-se de que está conectado à Internet e clique no botão Atualizar ou pressione Voltar para assistir a um novo código de amigo.\n\nSe o erro for diferente disso ou se o erro persistir, certifique-se de que o site do Wiimmfi esteja em execução. Caso contrário, faça uma captura de tela desta tela e envie um relatório de bug clicando no ícone Sobre na página principal.</string>
+ <string name="github">Todo o código neste projeto é de código aberto no meu repositório GitHub <a href="https://github.com/brysonsteck/wiimmfi-watcher/tree/master">aqui.</a> Você é livre para usar este código e expandi-lo sob a <a href='https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE'>Licença Pública Geral GNU</a> (Versão 3).</string>
+ <string name="bugs">Falando em bugs, você encontrou um bug? Quer fornecer feedback sobre o aplicativo? Eu adoraria ouvir isso! Primeiro, certifique-se de que o problema que você encontrou não está listado na minha <a href='https://github.com/brysonsteck/wiimmfi-watcher/blob/master/TODO.md'>lista de tarefas</a>. É possível que eu já esteja ciente ou trabalhando nisso. Se o seu problema não for abordado na lista de tarefas, você pode criar um problema no meu repositório GitHub <a href='https://github.com/brysonsteck/wiimmfi-watcher/issues'>aqui.</a>. Se você não sabe como usar o GitHub, pode preencher este <a href='https://docs.google.com/forms/d/e/1FAIpQLSd6qCONAP2tsbHPgzu_CdZcHVHL5nx7q0XFqrVfExEc84kqUQ/viewform?usp=sf_link'>Formulário Google.</a></string>
+ <string name="license">&#169; Copyright 2021 Bryson Steck\n\nWiimmfi Watcher está disponível sob a Licença Pública Geral GNU Versão 3. Você pode visualizar a licença <a href="https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE">aqui.</a>\n\nWiimmfi Watcher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nWiimmfi Watcher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with Wiimmfi Watcher. If not, see &lt;<a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>&gt;.</string>
+ <string name="contact">Se você quiser entrar em contato comigo por qualquer motivo não relacionado a relatórios de bugs ou a este aplicativo em geral, pode entrar em contato comigo por e-mail <a href='mailto:steck.bryson@gmail.com'>steck.bryson@gmail.com</a> ou no Discord em bryzinga#9971.</string>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index e254585..58d861b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -6,7 +6,7 @@
<string name="about_watcher">Wiimmfi Watcher is an UNOFFICIAL application created for a school project that I have decided to turn into a full application. This application was made to provide an easy shortcut to the Wiimmfi website and display data in a mobile friendly way, since the official website doesn\'t have a mobile friendly version. Free and open source, you can watch your Wiimmfi matches on your phone in a quick and easy way. </string>
<string name="github">All of the code in this project is open source on my GitHub repository <a href='https://github.com/brysonsteck/wiimmfi-watcher/tree/master'>here.</a> You are free to use this code and expand upon it under the <a href='https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE'>GNU General Public License</a> (Version 3).</string>
<string name="bugs">Speaking of bugs, did you find a bug? Do you want to provide feedback on the app? I\'d love to hear it! First, make sure that the issue you found is not listed on my <a href='https://github.com/brysonsteck/wiimmfi-watcher/blob/master/TODO.md'>todo list.</a> It\'s possible I\'m already aware of it or working on it. If your issue is not addressed on the todo list, then you can create an issue on my GitHub repository <a href='https://github.com/brysonsteck/wiimmfi-watcher/issues'>here.</a> If you don\'t know how to use GitHub, you can fill out this <a href='https://docs.google.com/forms/d/e/1FAIpQLSd6qCONAP2tsbHPgzu_CdZcHVHL5nx7q0XFqrVfExEc84kqUQ/viewform?usp=sf_link'>Google Form</a> instead.</string>
- <string name="license">&#169; Copyright 2021 Bryson Steck\n\nWiimmfi Watcher is available under the GNU General Public License Version 3. You can view the license <a href="https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE">here.</a>\n\nWiimmfi Watcher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nWiimmfi Watcher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with Wiimmfi Watcher. If not, see &lt;<a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>&gt;.</string>
+ <string name="license">&#169; Copyright 2021 Bryson Steck Wiimmfi Watcher is available under the GNU General Public License Version 3. You can view the license <a href="https://github.com/brysonsteck/wiimmfi-watcher/tree/master/LICENSE">here.</a> Wiimmfi Watcher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Wiimmfi Watcher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Wiimmfi Watcher. If not, see &lt;<a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>&gt;.</string>
<string name="contact">If you would like to get a hold of me for any reason unrelated to bug reports or this app in general, you can contact me through email at <a href='mailto:steck.bryson@gmail.com'>steck.bryson@gmail.com</a> or on Discord at bryzinga#9971.</string>
<string name="watch">Watch</string>