Compare commits

...

2 Commits

Author SHA1 Message Date
d5c457c9a6 ... 2026-02-24 16:38:44 +00:00
526da66c5f ... 2026-02-19 10:32:45 +00:00
9 changed files with 30 additions and 49 deletions

8
.idea/markdown.xml generated Normal file
View 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>

View File

@@ -76,10 +76,5 @@ public class ClientDashboardActivity extends AppCompatActivity {
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();
// }
}

View File

@@ -75,10 +75,5 @@ public class EstablishmentDashboardActivity extends AppCompatActivity {
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();
// }
}

View File

@@ -160,13 +160,15 @@ public class GestaoStaffActivity extends AppCompatActivity {
btnAtribuir.setOnClickListener(v -> guardarAtribuicao());
}
floatingActionButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(GestaoStaffActivity.this, AddStaffActivity.class);
startActivity(intent);
}
});
if (floatingActionButton != null) {
floatingActionButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(GestaoStaffActivity.this, AddStaffActivity.class);
startActivity(intent);
}
});
}
}
private void guardarAtribuicao() {

View File

@@ -18,12 +18,9 @@ import androidx.core.view.WindowInsetsCompat;
import com.google.firebase.FirebaseApp;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import java.util.HashMap;
import java.util.Map;
@@ -242,18 +239,6 @@ public class MainActivity extends AppCompatActivity {
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() {
hasCreatedAccount = true;
SharedPreferences prefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
@@ -469,14 +454,4 @@ public class MainActivity extends AppCompatActivity {
}
return true;
}
// @Override
// protected void onStart() {
// super.onStart();
// FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
// if (firebaseUser != null) {
// startActivity(new Intent(this, MainActivity.class));
// finish();
// }
// }
}

View File

@@ -1,4 +0,0 @@
package com.example.pap_teste.models;
public class Client {
}

View File

@@ -18,4 +18,14 @@ android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# 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

View File

@@ -1,5 +1,5 @@
[versions]
agp = "8.13.2"
agp = "9.0.1"
junit = "4.13.2"
junitVersion = "1.3.0"
espressoCore = "3.7.0"

View File

@@ -1,6 +1,6 @@
#Tue Jan 20 14:11:23 WET 2026
distributionBase=GRADLE_USER_HOME
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
zipStorePath=wrapper/dists