Closed shuhanmirza closed 4 years ago
I think we should have a helper function. So that we can check connectivity from any activity. And if connectivity is not present, a dialog popup will be shown or every activity will just be directed to the landing activity.
Sounds right?
Yes, I did that. But is it necessary to check this in every activity that gets redirected from LandingActivity
as it's the parent layout anyway? by every activity, I meant LoginActivty
SignUpActivity
and others.
Make an issue for @appledora if you want it to be used in her fragments too.
Let's discuss this on next meeting.
Closing issue.
Added an internet checker to
LandingActivity
. WhyLandingActivity
only?authChecking
will be happening inSplashActivity
anyway and on failure will be returned toLandingActivity
. So in case of internet failure, it will go to that specific activity.@shuhanmirza Please close the issue if you are satisfied with the approach.