Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-09-17 09:35:47 +02:00
commit 1b31eaf2e2
2 changed files with 1 additions and 16 deletions

View file

@ -624,11 +624,11 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
if (((app.getAppInitializer().isFirstTime() && Version.isDeveloperVersion(app))
|| !app.getResourceManager().isAnyMapIstalled()) && FirstUsageWelcomeFragment.SHOW) {
FirstUsageWelcomeFragment.SHOW = false;
getSupportFragmentManager().beginTransaction()
.add(R.id.fragmentContainer, new FirstUsageWelcomeFragment(),
FirstUsageWelcomeFragment.TAG).commitAllowingStateLoss();
}
FirstUsageWelcomeFragment.SHOW = false;
}
@Override

View file

@ -34,30 +34,15 @@ public class FirstUsageWelcomeFragment extends Fragment {
skipButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
/*
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
Window w = getActivity().getWindow();
w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
*/
FirstUsageWizardFragment.startWizard(getActivity());
}
});
return view;
}
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
public void onResume() {
super.onResume();
/*
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
Window w = getActivity().getWindow(); // in Activity's onCreate() for instance
w.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
*/
((MapActivity)getActivity()).disableDrawer();
}