Skip to content

Fix/improve location#206

Open
oaliaga wants to merge 20 commits intomasterfrom
fix/improve-location
Open

Fix/improve location#206
oaliaga wants to merge 20 commits intomasterfrom
fix/improve-location

Conversation

@oaliaga
Copy link
Contributor

@oaliaga oaliaga commented Mar 5, 2026

  • Fix multiple locations.
  • Fix isTablet.
  • Do not show settings in QR code.
  • New Kotlin classes.

oaliaga added 8 commits March 4, 2026 22:42
Deprecated classes
Aware
Daily
Is Tablet
Deprecated classes
New Kotlin classes
Remove deprecated
New version 2.7.0
Copy link
Member

@patriciojofre patriciojofre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • faltan test de los cambios.
  • limpiar el uso de try { } catch
  • implementar utils para funciones que se pueden reutilizar

PreyLogger.d("Alert start options:${options}")
val notificationId = AlertConfig.getAlertConfig(context).getNotificationId()
var alertMessage: String? = ""
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

este catch no es necesario, el mensaje siempre se envía con alert_message, no message

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try {
alertMessage = options.getString("alert_message") ?: ""

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

puedes revisar

oaliaga added 8 commits March 16, 2026 10:52
Deprecated classes
Tests are added
setInitialTrigger is set
Serial reception via MDM is added
The code was improved
Location Low Battery logic is changed
Ensure that a daily location is sent.
Fix report
// Este test simula que la app se cierra y se abre (re-leyendo los SharedPreferences)
DailyStore.markSent(context)
val result = DailyStore.wasSentToday(context)
assertTrue("Los datos deben persistir en SharedPreferences", result)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

english

RestrictionsManager restrictionsManager = (RestrictionsManager) context.getSystemService(Context.RESTRICTIONS_SERVICE);
// Retrieve the application restrictions
Bundle restrictions = restrictionsManager.getApplicationRestrictions();
if (restrictions != null && restrictions.containsKey("serial")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

es correcto que este tipo de cosas estén en este archivo de password?

oaliaga added 4 commits March 18, 2026 13:28
Fix language
Remove file
Remove file
Fix language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants