Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
startActivity(i);
requireActivity().finish();
});
root.findViewById(R.id.k2go_step1_skip_now).setOnClickListener(v -> {
requireContext().getSharedPreferences(getString(R.string.pref_file_internal), android.content.Context.MODE_PRIVATE)
.edit().putBoolean(getString(R.string.pref_key_setup_complete), true).apply();
startActivity(new android.content.Intent(requireContext(), LibraryActivity.class));
requireActivity().finish();
});
select(selected);
return root;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@ protected void onCreate(Bundle b) {
.putExtra(LibraryActivity.EXTRA_TAB, R.id.nav_clone));
finish();
});
findViewById(R.id.wiz_skip_for_now).setOnClickListener(v -> {
markComplete();
startActivity(new Intent(this, LibraryActivity.class));
finish();
});

primary.setOnClickListener(v -> onPrimary());
back.setOnClickListener(v -> goBack());
render();
Expand Down
2 changes: 0 additions & 2 deletions controller/app/src/main/res/layout/activity_k2go_wizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
android:text="@string/k2go_internet_download_sub" android:textColor="@color/k2go_muted" android:textAppearance="?attr/textAppearanceBodySmall" />
<TextView android:id="@+id/setup_copy" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="16dp" android:layout_marginTop="14dp"
android:gravity="center" android:text="@string/k2go_copy_from_phone" android:background="@drawable/k2go_getmore_bg" android:textColor="@color/k2go_teal" android:textAppearance="?attr/textAppearanceTitleLarge" android:clickable="true" android:focusable="true" />
<TextView android:id="@+id/wiz_skip_for_now" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="14dp" android:padding="8dp"
android:gravity="center" android:text="@string/k2go_skip_for_now" android:textColor="@color/k2go_teal" android:textAppearance="?attr/textAppearanceBodyLarge" android:clickable="true" android:focusable="true" />
</LinearLayout>

<!-- Push the primary CTA to the bottom (fixed position across steps, per the wizard diagram). -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="10dp" android:gravity="center_vertical">
<TextView android:id="@+id/k2go_step1_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="8dp" android:text="@string/k2go_back_link" android:textAppearance="?attr/textAppearanceBodyLarge" android:textColor="@color/k2go_teal" android:clickable="true" android:focusable="true" />
<View android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" />
<TextView android:id="@+id/k2go_step1_skip_now" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="8dp" android:text="@string/k2go_skip_for_now" android:textAppearance="?attr/textAppearanceBodyLarge" android:textColor="@color/k2go_teal" android:clickable="true" android:focusable="true" />
</LinearLayout>
</LinearLayout>
</ScrollView>
3 changes: 3 additions & 0 deletions controller/app/src/main/res/values/strings_k2go.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
<string name="k2go_courses_hint">Kiwix presets exist; Kolibri can\'t be preset yet — set up on the device after install.</string>
<string name="k2go_added_after">added after install</string>
<string name="k2go_step2a_hint">Tap a source to Add or Skip it. Skip all = just the system.</string>
<!-- ADFA-5116: currently UNUSED in the main flow — the setup "Skip for now" was removed (it let
the user reach the Library with no system). Kept for likely reuse; the translations still carry
it. Remove this note when it is wired to a screen again. -->
<string name="k2go_skip_for_now">Skip for now ›</string>
<string name="k2go_wiz_choose_language">Choose language</string>
<string name="k2go_wiz_language_sub">Sets app + content language.</string>
Expand Down
Loading