Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not import inner classes in generated code #6

Open
Doctoror opened this issue Oct 23, 2016 · 0 comments
Open

Does not import inner classes in generated code #6

Doctoror opened this issue Oct 23, 2016 · 0 comments

Comments

@Doctoror
Copy link

Doctoror commented Oct 23, 2016

Gendalf 1.3.0
Android Studio 2.2.1
Gradle plugin 2.2.1
Android APT 1.8

Consider this case.

import android.media.audiofx.Equalizer;

@PrefsConfig("AudioEffectsPrefs")
public class AudioEffectsPrefsConfig {

    @CustomPref(EqualizerSettingsConverter.class) Equalizer.Settings equalizerSettings;

    static final class EqualizerSettingsConverter
            implements Converter<Equalizer.Settings, String> {

        @Override
        public String serialize(@Nullable final Equalizer.Settings settings) {
            // Real code omitted
            return null;
        }

        @Override
        public Equalizer.Settings deserialize(@Nullable final String s) {
            // Real code omitted
            return null;
        }
    }
}

In the generated class, Settings is not imported properly:

import android.media.audiofx.Equalizer; // Imported Equalizer instead of Equalizer.Settings

static {
    KEYS.put(KEY_EQUALIZER_SETTINGS, Settings.class); //Error:(27, 38) error: cannot find symbol class Settings
}
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

No branches or pull requests

1 participant