Mensajes: 2
Temas: 0
Gracias Recibido: 4 en 2 posts
Gracias Dado: 8
Registro en: Sep 2018
Kernel: DeluxeKernel_v16.3
Movil: Samsung Galaxy Note 8
Rom: DeluxeROM_v28
11-04-2020, 11:55 AM
(Última modificación: 11-04-2020, 11:56 AM por AbrahamGC.)
(11-04-2020, 11:22 AM)dovanchuc7521 escribió: @Grouxho
Thank you for all helps! And how to remove this by default?
You can disable it on configuration menu, but if you want it to by false by default :
com/grx/settings/utils/Common.java
Código: public static final boolean DEF_VAL_EXIT_CONFIRM = true;
to :
Código: public static final boolean DEF_VAL_EXIT_CONFIRM = false;
Mensajes: 21
Temas: 1
Gracias Recibido: 10 en 6 posts
Gracias Dado: 24
Registro en: Feb 2018
Localización: Vietnam
Movil: Samsung Galaxy Note9
Rom: SuperStable Rom
(11-04-2020, 11:55 AM)AbrahamGC escribió: (11-04-2020, 11:22 AM)dovanchuc7521 escribió: @Grouxho
Thank you for all helps! And how to remove this by default?
You can disable it on configuration menu, but if you want it to by false by default :
com/grx/settings/utils/Common.java
Código: public static final boolean DEF_VAL_EXIT_CONFIRM = true;
to :
Código: public static final boolean DEF_VAL_EXIT_CONFIRM = false;
Thanks a lot!!
Gửi từ SM-N960N của tôi bằng cách sử dụng Tapatalk
Mensajes: 21
Temas: 1
Gracias Recibido: 10 en 6 posts
Gracias Dado: 24
Registro en: Feb 2018
Localización: Vietnam
Movil: Samsung Galaxy Note9
Rom: SuperStable Rom
(11-04-2020, 11:55 AM)AbrahamGC escribió: (11-04-2020, 11:22 AM)dovanchuc7521 escribió: @ "Grouxho"
Thank you for all helps! And how to remove this by default?
You can disable it on configuration menu, but if you want it to by false by default:
com / grx / settings / utils / Common.java to:
Código: public static final boolean DEF_VAL_EXIT_CONFIRM = true;
Código: public static final boolean DEF_VAL_EXIT_CONFIRM = false;
I tried but not work
Mensajes: 2
Temas: 0
Gracias Recibido: 4 en 2 posts
Gracias Dado: 8
Registro en: Sep 2018
Kernel: DeluxeKernel_v16.3
Movil: Samsung Galaxy Note 8
Rom: DeluxeROM_v28
11-05-2020, 07:38 PM
(Última modificación: 11-05-2020, 07:50 PM por AbrahamGC.)
(11-05-2020, 11:53 AM)dovanchuc7521 escribió: I tried but not work
It's the default value, means if you already toggled it, it's using the value saved. Reset the preferences and you will see by default is false.
I hope here we're talking about editing on Android Studio, if you are using apktool it's possible that instead of reading the boolean (sget-boolean) it's directly using true (0x1) as default, in that case do this :
GrxSettingsActivity.smali :
Código: const/4 v1, 0x1
iput-boolean v1, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
to :
Código: const/4 v1, 0x0
iput-boolean v1, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
And
Código: sget-object v0, Lcom/grx/settings/utils/Common;->sp:Landroid/content/SharedPreferences;
const-string v1, "grx_exit_confirm"
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
to :
Código: sget-object v0, Lcom/grx/settings/utils/Common;->sp:Landroid/content/SharedPreferences;
const-string v1, "grx_exit_confirm"
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
Mensajes: 21
Temas: 1
Gracias Recibido: 10 en 6 posts
Gracias Dado: 24
Registro en: Feb 2018
Localización: Vietnam
Movil: Samsung Galaxy Note9
Rom: SuperStable Rom
(11-05-2020, 07:38 PM)AbrahamGC escribió: (11-05-2020, 11:53 AM)dovanchuc7521 escribió: I tried but not work
It's the default value, means if you already toggled it, it's using the value saved. Reset the preferences and you will see by default is false.
I hope here we're talking about editing on Android Studio, if you are using apktool it's possible that instead of reading the boolean (sget-boolean) it's directly using true (0x1) as default, in that case do this :
GrxSettingsActivity.smali :
Código: const/4 v1, 0x1
iput-boolean v1, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
to :
Código: const/4 v1, 0x0
iput-boolean v1, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
And
Código: sget-object v0, Lcom/grx/settings/utils/Common;->sp:Landroid/content/SharedPreferences;
const-string v1, "grx_exit_confirm"
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
to :
Código: sget-object v0, Lcom/grx/settings/utils/Common;->sp:Landroid/content/SharedPreferences;
const-string v1, "grx_exit_confirm"
const/4 v2, 0x0
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/grx/settings/GrxSettingsActivity;->mExitConfirmation:Z
All ok, thank you!!
Mensajes: 12
Temas: 0
Gracias Recibido: 12 en 9 posts
Gracias Dado: 32
Registro en: Jan 2020
Is there any way to increase the size of the images shown here? Can anybody please help me.
Sent from my SM-N976F using Tapatalk
Mensajes: 169
Temas: 22
Gracias Recibido: 642 en 153 posts
Gracias Dado: 164
Registro en: Jan 2018
(11-08-2020, 02:48 PM)xuanhoa8687 escribió: Is there any way to increase the size of the images shown here? Can anybody please help me.
Sent from my SM-N976F using Tapatalk
try changing dlg_grxmultiselect_item.xml layout.
Design that layout for items to your own
Recuento: 1 usuario dice Me Gusta a Grouxho por este post:1 usuario dice Gracias a Grouxho por este post
• xuanhoa8687 (11-12-2020)
@ Grouxho
Is it possible to make onclickrule from one singleselection to another singelselection in GrxSettings v2.1?
For example if i choose string 1 in singleselection a, in singleselection b automatically string 0 is choosen.
Thank you for this awesome preference app
Recuento: 1 usuario dice Me Gusta a Invitado por este post:1 usuario dice Gracias a Invitado por este post
• Grouxho (02-24-2021)
Mensajes: 169
Temas: 22
Gracias Recibido: 642 en 153 posts
Gracias Dado: 164
Registro en: Jan 2018
(02-24-2021, 03:25 AM)vdvdvd escribió: @Grouxho
Is it possible to make onclickrule from one singleselection to another singelselection in GrxSettings v2.1?
For example if i choose string 1 in singleselection a, in singleselection b automatically string 0 is choosen.
Thank you for this awesome preference app
I will think of it when i spend time again in the app. But i do not know when i will start again improving the app.
Recuento: 1 usuario dice Me Gusta a Grouxho por este post:1 usuario dice Gracias a Grouxho por este post
• GVM (02-24-2021)
(02-06-2018, 09:22 PM)Grouxho escribió: Added a new feature to the app. Now you can define a broadcast with a common action (defined in a string, grx_common_extra_broadcast). Then you can add to each preference two new attributes (grx:commonBcExtra and grx:commonExtraValue)
The idea is that you can personalize a broadcast sent on preference changes. This allows a new way of updating mods (similar to group keys, but using an existing broadcast receiver) but it is still more flexible
You can play with the extra extring and the extra value to update individual groups of preferences. you only have to register in a broadcast the action defined in the string, and when you receive it, get the extra and process it to know what to update.
I will do an example soon. @ Grouxho
Does an example for this feature exist? I searched but could not find one with grx.commonBCExtra feature described. Can you send a link to this example exists, please.
I want to use an existing intentreceiver, com.miui.app.ExtraStatusBarManager.REQUEST_RESTART, which is used on miui-roms (xiaomi) to update the statusbar if you change a theme.
Do i understand this correctly and i could only update a defined value and not restart the whole statusbar? This would save battery.
ps: this is the way the intent receiver is implemented, 2. example:
[/url][url=https://4pda.ru/forum/index.php?showtopic=760281&st=3360#entry75329976]MIUI - Модификация и украшательства - 4PDA
Recuento: 1 usuario dice Me Gusta a Invitado por este post:1 usuario dice Gracias a Invitado por este post
• Grouxho (03-02-2021)
|