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

Timob 14324 3 1 x #4608

Merged
merged 1 commit into from
Aug 27, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ public AndroidModule(TiContext tiContext)
@Kroll.method
public void openPreferences(@Kroll.argument(optional=true) String prefsName)
{
Activity activity = TiApplication.getAppRootOrCurrentActivity();
if (activity != null) {

Intent i = new Intent(getActivity(), TiPreferencesActivity.class);
Intent i = new Intent(activity, TiPreferencesActivity.class);
if (prefsName != null) {
i.putExtra("prefsName", prefsName);
}
getActivity().startActivity(i);
activity.startActivity(i);
} else {
Log.w(TAG, "Unable to open preferences. Activity is null", Log.DEBUG_MODE);
}
Expand Down