artem-zinnatullin / android-wail-app

DEPRECATED Android Last.fm scrobbler. Recruiters: please don't look at this project.
MIT License
121 stars 36 forks source link

Bug report from Google+ Group: App keeps pop up #90

Closed artem-zinnatullin closed 9 years ago

artem-zinnatullin commented 9 years ago

https://plus.google.com/+RicardoSilva1973/posts/CdGSn1JzZdn

ilya-murzinov commented 9 years ago

@artem-zinnatullin, I've experienced something like this with Chrome some time ago I'll look into this ASAP.

ilya-murzinov commented 9 years ago

@artem-zinnatullin any ideas why can it happen? Can you even reproduce this?

artem-zinnatullin commented 9 years ago

@ilya-murzinov I think it's Android problem, but I'll check the code when I'll have time

ilya-murzinov commented 9 years ago

Problem is in WailApp.java

@Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        LocaleUtil.updateLanguage(this, WAILSettings.getLanguage(this));
    }

and LocalUtil.java

        if (newLang != null && !language.equals(newLang)) {
            Intent intent = context.getPackageManager()
                    .getLaunchIntentForPackage(context.getPackageName());
            intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
            context.startActivity(intent);
        }
artem-zinnatullin commented 9 years ago

100% true

вт, 20 янв. 2015, 16:52, Ilya Murzinov notifications@github.com:

Problem is in WailApp.java

@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); LocaleUtil.updateLanguage(this, WAILSettings.getLanguage(this)); }

and LocalUtil.java

    if (newLang != null && !language.equals(newLang)) {
        Intent intent = context.getPackageManager()
                .getLaunchIntentForPackage(context.getPackageName());
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        context.startActivity(intent);
    }

— Reply to this email directly or view it on GitHub https://github.com/artem-zinnatullin/android-wail-app/issues/90#issuecomment-70655720 .