Setting firstTime to false after user chose storage source
This commit is contained in:
parent
0c359c6867
commit
3e685fc233
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue