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

Android Oreo Issues Has Been Resolved. #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zeeshanrasool91
Copy link

Process Phoenix Has Been Added for restarting Application work better then refresh method....

Process Phoenix Has Been Added for restarting Application work better then refresh method....
@iamjazzar
Copy link
Owner

Hello @zeeshanrasool91, and thanks for the contribution. Is this ready for review now?

@zeeshanrasool91
Copy link
Author

yes it is ready for review


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this method if it doesn't contain changes.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeeshanrasool91 Any updates ion this?

@@ -1,7 +1,11 @@
package com.ahmedjazzar.rosetta.app;

import android.app.Application;
import android.content.Context;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why all these unused imports?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeeshanrasool91 Any updates on these?

@@ -4,6 +4,6 @@
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@color/colorPrimaryDark</item>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was actually showing me transparent view on my Lollipop device.

@@ -15,6 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using this repository?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is required by Latest Compat Libraries

@@ -153,7 +153,8 @@ protected void onPositiveClick() {
getActivity(), mSelectedLanguage)) {

mLogger.info("App locale changed successfully.");
LocalesUtils.refreshApplication(getActivity());
//LocalesUtils.refreshApplication(getActivity());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i was using your refresh method the problem was that it was recreating application and current activity both.
i just wanted to recreate whole application. so it can recreate all resources in my application

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool with me, but just no need to comment, removing the line is enough.

@@ -265,7 +265,8 @@ static boolean setLocale(Locale newLocale, Activity activity) {
}

if (LocalesUtils.setAppLocale(activity.getApplicationContext(), newLocale)) {
LocalesUtils.refreshApplication(activity);
//LocalesUtils.refreshApplication(activity);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i was using your refresh method the problem was that it was recreating application and current activity both.
i just wanted to recreate whole application. so it can recreate all resources in my application

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool with me, but just no need to comment, removing the line is enough.

@@ -0,0 +1,131 @@
/*
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just include it instead of copying and pasting it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did it but was Creating problems that's why added it as a file, i tried to solve it once i will check then will commit this code.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did it so buddy. i added it as Dependency but for that i have to Add

in my Manifest in Main Default launcher Activity, other wise was causing crash.

@zeeshanrasool91
Copy link
Author

zeeshanrasool91 commented Jun 29, 2018 via email

@zeeshanrasool91
Copy link
Author

@AhmedAljazzar now you can Check and tell me

@@ -1,7 +1,11 @@
package com.ahmedjazzar.rosetta.app;

import android.app.Application;
import android.content.Context;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeeshanrasool91 Any updates on these?


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zeeshanrasool91 Any updates ion this?

//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to comment, just remove the line.

//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to comment as well, just remove the line.

@@ -153,7 +153,8 @@ protected void onPositiveClick() {
getActivity(), mSelectedLanguage)) {

mLogger.info("App locale changed successfully.");
LocalesUtils.refreshApplication(getActivity());
//LocalesUtils.refreshApplication(getActivity());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool with me, but just no need to comment, removing the line is enough.

@@ -265,7 +265,8 @@ static boolean setLocale(Locale newLocale, Activity activity) {
}

if (LocalesUtils.setAppLocale(activity.getApplicationContext(), newLocale)) {
LocalesUtils.refreshApplication(activity);
//LocalesUtils.refreshApplication(activity);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool with me, but just no need to comment, removing the line is enough.

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

Successfully merging this pull request may close these issues.

3 participants