« first day (2688 days earlier)      last day (1414 days later) » 

2:38 AM
I have a problem, Can someone help?
Hey ZarNi welcome
 
@HamzaEzzaydia Thx u.
 
Are you an android developer?
 
yes i currently working as Android Dev.
and u?
 
Me as well
I'm all day searching for a solution for a problem I encountered
2
Q: Call a method before startActivity automatically

Hamza EzzaydiaI want a method(); to be called automatically before each call to startActivity(intent); for the whole project because I cannot modify the other dependencies. EDIT: I found something called AOP using AspectJ https://medium.com/@jdvp/aspect-oriented-programming-in-android-159054d52757

 
2:56 AM
ahh ok. let me see the question.
 
3:07 AM
My goal is to add some flags to all the intents of the project
 
4:05 AM
Thank you
 
 
3 hours later…
Zoe
6:41 AM
14 messages moved from Java
 
 
7 hours later…
 
5 hours later…
6:25 PM
I have this piece of code:
```
const updatedValues = {
...values,
};
```
somehow `updatedValues` is still keeping a refernce to `values` so if anything in `updatedValues` is changed, it affects `values`. lodash's cloneDeep solves this problem but I have been asked not to use it (its like a drug :P)

How do I improve this code?
 
1 message moved from JavaScript
 

« first day (2688 days earlier)      last day (1414 days later) »