Compare commits
4 Commits
f9b1b4fc5d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d5c457c9a6 | |||
| 526da66c5f | |||
| a715199bbe | |||
| 2f2719101f |
8
.idea/markdown.xml
generated
Normal file
8
.idea/markdown.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="MarkdownSettings">
|
||||||
|
<option name="previewPanelProviderInfo">
|
||||||
|
<ProviderInfo name="Compose (experimental)" className="com.intellij.markdown.compose.preview.ComposePanelProvider" />
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -76,10 +76,5 @@ public class ClientDashboardActivity extends AppCompatActivity {
|
|||||||
btnBack.setOnClickListener(v -> finish());
|
btnBack.setOnClickListener(v -> finish());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mantemos este método caso seja útil no futuro para feedback rápido.
|
|
||||||
// private void showToast(String message) {
|
|
||||||
// Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,10 +75,5 @@ public class EstablishmentDashboardActivity extends AppCompatActivity {
|
|||||||
btnBack.setOnClickListener(v -> finish());
|
btnBack.setOnClickListener(v -> finish());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mantemos este método caso seja útil no futuro para feedback rápido.
|
|
||||||
// private void showToast(String message) {
|
|
||||||
// Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ public class GestaoStaffActivity extends AppCompatActivity {
|
|||||||
btnAtribuir.setOnClickListener(v -> guardarAtribuicao());
|
btnAtribuir.setOnClickListener(v -> guardarAtribuicao());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (floatingActionButton != null) {
|
||||||
floatingActionButton.setOnClickListener(new View.OnClickListener() {
|
floatingActionButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
@@ -168,6 +169,7 @@ public class GestaoStaffActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void guardarAtribuicao() {
|
private void guardarAtribuicao() {
|
||||||
String nome = "";
|
String nome = "";
|
||||||
|
|||||||
@@ -18,12 +18,9 @@ import androidx.core.view.WindowInsetsCompat;
|
|||||||
|
|
||||||
import com.google.firebase.FirebaseApp;
|
import com.google.firebase.FirebaseApp;
|
||||||
import com.google.firebase.auth.FirebaseAuth;
|
import com.google.firebase.auth.FirebaseAuth;
|
||||||
import com.google.firebase.auth.FirebaseUser;
|
|
||||||
import com.google.firebase.database.DataSnapshot;
|
import com.google.firebase.database.DataSnapshot;
|
||||||
import com.google.firebase.database.DatabaseError;
|
|
||||||
import com.google.firebase.database.DatabaseReference;
|
import com.google.firebase.database.DatabaseReference;
|
||||||
import com.google.firebase.database.FirebaseDatabase;
|
import com.google.firebase.database.FirebaseDatabase;
|
||||||
import com.google.firebase.database.ValueEventListener;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -242,18 +239,6 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
return firstLetter + rest;
|
return firstLetter + rest;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void enforceFirstAccountCreation() {
|
|
||||||
SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
|
|
||||||
hasCreatedAccount = prefs.getBoolean(KEY_HAS_CREATED_ACCOUNT, false);
|
|
||||||
|
|
||||||
if (!hasCreatedAccount) {
|
|
||||||
selectedAccountAction = AccountAction.CRIAR;
|
|
||||||
Toast.makeText(this, "Crie uma conta para começar a usar a app.", Toast.LENGTH_SHORT).show();
|
|
||||||
}
|
|
||||||
|
|
||||||
updateActionButtons();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void markAccountCreated() {
|
private void markAccountCreated() {
|
||||||
hasCreatedAccount = true;
|
hasCreatedAccount = true;
|
||||||
SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
|
SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
|
||||||
@@ -469,14 +454,4 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Override
|
|
||||||
// protected void onStart() {
|
|
||||||
// super.onStart();
|
|
||||||
// FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
|
|
||||||
// if (firebaseUser != null) {
|
|
||||||
// startActivity(new Intent(this, MainActivity.class));
|
|
||||||
// finish();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
package com.example.pap_teste.models;
|
|
||||||
|
|
||||||
public class Client {
|
|
||||||
}
|
|
||||||
@@ -19,3 +19,13 @@ android.useAndroidX=true
|
|||||||
# resources declared in the library itself and none from the library's dependencies,
|
# resources declared in the library itself and none from the library's dependencies,
|
||||||
# thereby reducing the size of the R class for that library
|
# thereby reducing the size of the R class for that library
|
||||||
android.nonTransitiveRClass=true
|
android.nonTransitiveRClass=true
|
||||||
|
android.defaults.buildfeatures.resvalues=true
|
||||||
|
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
|
||||||
|
android.enableAppCompileTimeRClass=false
|
||||||
|
android.usesSdkInManifest.disallowed=false
|
||||||
|
android.uniquePackageNames=false
|
||||||
|
android.dependency.useConstraints=true
|
||||||
|
android.r8.strictFullModeForKeepRules=false
|
||||||
|
android.r8.optimizedResourceShrinking=false
|
||||||
|
android.builtInKotlin=false
|
||||||
|
android.newDsl=false
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
[versions]
|
[versions]
|
||||||
agp = "8.13.2"
|
agp = "9.0.1"
|
||||||
junit = "4.13.2"
|
junit = "4.13.2"
|
||||||
junitVersion = "1.3.0"
|
junitVersion = "1.3.0"
|
||||||
espressoCore = "3.7.0"
|
espressoCore = "3.7.0"
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
#Tue Jan 20 14:11:23 WET 2026
|
#Tue Jan 20 14:11:23 WET 2026
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
Reference in New Issue
Block a user