Setting firstTime to false after user chose storage source

This commit is contained in:
GaidamakUA 2015-10-27 16:27:54 +02:00
parent 0c359c6867
commit 3e685fc233
2 changed files with 2 additions and 1 deletions

View file

@ -3,7 +3,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:background="@color/color_transparent"
tools:context="net.osmand.plus.download.ui.DataStoragePlaceDialogFragment"> tools:context="net.osmand.plus.download.ui.DataStoragePlaceDialogFragment">
<ImageView <ImageView

View file

@ -140,6 +140,7 @@ public class DataStoragePlaceDialogFragment extends DialogFragment {
public void onClick(View v) { public void onClick(View v) {
saveFilesLocation(OsmandSettings.EXTERNAL_STORAGE_TYPE_DEFAULT, saveFilesLocation(OsmandSettings.EXTERNAL_STORAGE_TYPE_DEFAULT,
internalStorage, getActivity()); internalStorage, getActivity());
getMyApplication().getAppInitializer().setFirstTime(false);
dismiss(); dismiss();
} }
}; };
@ -150,6 +151,7 @@ public class DataStoragePlaceDialogFragment extends DialogFragment {
public void onClick(View v) { public void onClick(View v) {
saveFilesLocation(OsmandSettings.EXTERNAL_STORAGE_TYPE_EXTERNAL_FILE, saveFilesLocation(OsmandSettings.EXTERNAL_STORAGE_TYPE_EXTERNAL_FILE,
externalStorage, getActivity()); externalStorage, getActivity());
getMyApplication().getAppInitializer().setFirstTime(false);
dismiss(); dismiss();
} }
}; };