Skip to content

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?

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?

<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.

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


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.


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

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'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
//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'
//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.


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.


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