1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-09 11:41:29 +00:00

Reorder welcome wizard slides (#24)

This commit is contained in:
Catfriend1 2018-08-23 08:05:31 +02:00 committed by GitHub
parent ce9ea0b1d1
commit fb0479e5f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,14 +144,14 @@ public class FirstStartActivity extends Activity {
(showSlideKeyGeneration ? 1 : 0)
];
mSlides[slideIndex++] = new Slide(R.layout.activity_firststart_intro, colorsActive[0], colorsInactive[0]);
if (showSlideIgnoreDozePermission) {
mSlidePosIgnoreDozePermission = slideIndex;
mSlides[slideIndex++] = new Slide(R.layout.activity_firststart_ignore_doze_permission, colorsActive[4], colorsInactive[4]);
}
if (showSlideStoragePermission) {
mSlidePosStoragePermission = slideIndex;
mSlides[slideIndex++] = new Slide(R.layout.activity_firststart_storage_permission, colorsActive[1], colorsInactive[1]);
}
if (showSlideIgnoreDozePermission) {
mSlidePosIgnoreDozePermission = slideIndex;
mSlides[slideIndex++] = new Slide(R.layout.activity_firststart_ignore_doze_permission, colorsActive[4], colorsInactive[4]);
}
if (showSlideLocationPermission) {
mSlides[slideIndex++] = new Slide(R.layout.activity_firststart_location_permission, colorsActive[2], colorsInactive[2]);
}