Skip to content

Commit

Permalink
About: removing app download links
Browse files Browse the repository at this point in the history
it is already moved to Settings

Signed-off-by: sunilpaulmathew <[email protected]>
  • Loading branch information
sunilpaulmathew committed Apr 27, 2018
1 parent b1678f0 commit dd1d202
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ public void onClick(RecyclerViewItem item) {
}
});

DescriptionView appdownloads = new DescriptionView();
appdownloads.setTitle(getString(R.string.app_downloads));
appdownloads.setSummary(getString(R.string.app_downloads_summary));
appdownloads.setOnItemClickListener(new RecyclerViewItem.OnItemClickListener() {
@Override
public void onClick(RecyclerViewItem item) {
Utils.launchUrl("https://github.com/SmartPack/SmartPack-Kernel-Manager/releases/latest", getActivity());
}
});

DescriptionView changelogs = new DescriptionView();
changelogs.setTitle(getString(R.string.change_logs));
changelogs.setSummary(getString(R.string.change_logs_summary));
Expand All @@ -123,7 +113,6 @@ public void onClick(RecyclerViewItem item) {
});

about.addItem(sourcecode);
about.addItem(appdownloads);
about.addItem(changelogs);
about.addItem(donatetome);
items.add(about);
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,10 @@
<!-- About -->
<string name="about_me" translatable="false">SmartPack-Kernel Manager is a modified version of official Kernel Adiutor, which is originally developed by Willi Ye aka Grarak. All the credits goes to the original developer.\n\nIf you like SmartPack-Kernel, please consider to donate to me as it is helpful to continue this project more active, though it is not at all necessary.</string>
<string name="libraries_used">Libraries used</string>
<string name="app_updates">SmartPack-Kernel Manager Updates</string>
<string name="app_version">Version</string>
<string name="source_code">Source Code</string>
<string name="source_code_summary">Visit SmartPack-Kernel Manager GitHub repo</string>
<string name="app_downloads">Downloads</string>
<string name="app_downloads_summary">Visit app release page</string>
<string name="change_logs">Change-logs</string>
<string name="change_logs_summary">View Change-logs</string>
<string name="donate_me">Donate to Me</string>
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<PreferenceCategory
android:key="app_updates"
android:title="@string/app_updates">

<Preference
android:key="check_update"
android:summary="@string/check_update_summary"
android:title="@string/check_update" />
</PreferenceCategory>

<SwitchPreferenceCompat
android:key="useretardedmeasurement"
Expand Down

0 comments on commit dd1d202

Please sign in to comment.