79555947

Date: 2025-04-04 17:25:24
Score: 6.5 🚩
Natty: 4
Report link

I have implemented this approach and it usually works well. But, when one creates UiText object as the StringResource with the resource ID from one module and try to access this resource ID from some other module, then asString method cannot access that resource ID and prints something like "com.<some_namespace>.UiText$StringResource@70c80" instead of actual string.

As I have multi modules application and I try to propagate messages from core modules to the feature module that calls the core modules, I have noticed this behavior. Every module can have it's own string resources and I don't like to have them all in one place since this cancels the modularization purpose.

Any idea how to solve this?

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve this?
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Bernard Čupić