danger/u/
This thread is permanently archived
Custom themes?

| Maybe we could implement our own images for the apps? Seems kinda overdue to me.

##Dev:Lain##

| Actually they're loaded from resources, meaning you'd have to recompile the APK to add a new theme. You totally can do that because it's open source, but then it won't automatically update from the play store.

They're loaded from resources in the webviews, but for the shortcuts I'm actually using java's reflection api to pull the correct resource ID based on the currently selected theme.

[...]

##Dev:Lain##

| https://github.com/nilesr/United4/blob/master/app/src/main/java/com/angryburg/uapp/activities/AndroidShortcuts.java#L67-L69
The code looks like this

String field_name = P.get("theme") + "_dangeru";
Integer field = (Integer) R.raw.class.getField(field_name).get(null);

##Dev:Lain##

| But if you send me a theme I'll put it in the app


| Ohh, I get it now.
Thanks for explaining.


| If I do that, everything else will still work, right? And if an update releases, do I have to do it in the new apk?

##Dev:Lain##

| Yes everything will still work but you will have to re-apply it when the app updates (or just don't update). The play store will NOT automatically update the app if you install your customized version. But seriously just send me a zip and I'll put it in the app

Total number of posts: 7, last modified on: Thu Jan 1 00:00:00 1512950167

This thread is permanently archived