Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1b31eaf2e2
2 changed files with 1 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue