Merge branch 'feature/check-for-update-button' into fork
This commit is contained in:
commit
c4eee28335
|
@ -348,6 +348,10 @@ public class SettingsFragment extends MastodonToolbarFragment{
|
||||||
if(updateItem != null && list.findViewHolderForAdapterPosition(0) instanceof UpdateViewHolder uvh){
|
if(updateItem != null && list.findViewHolderForAdapterPosition(0) instanceof UpdateViewHolder uvh){
|
||||||
uvh.bind(updateItem);
|
uvh.bind(updateItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ev.state == GithubSelfUpdater.UpdateState.NO_UPDATE) {
|
||||||
|
Toast.makeText(getActivity(), R.string.no_update_available, Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static abstract class Item{
|
private static abstract class Item{
|
||||||
|
|
|
@ -394,4 +394,5 @@
|
||||||
<string name="download_update">Download (%s)</string>
|
<string name="download_update">Download (%s)</string>
|
||||||
<string name="install_update">Installieren</string>
|
<string name="install_update">Installieren</string>
|
||||||
<string name="check_for_update">Auf Update prüfen</string>
|
<string name="check_for_update">Auf Update prüfen</string>
|
||||||
|
<string name="no_update_available">Kein Update verfügbar</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -403,6 +403,7 @@
|
||||||
<string name="download_update">Download (%s)</string>
|
<string name="download_update">Download (%s)</string>
|
||||||
<string name="install_update">Install</string>
|
<string name="install_update">Install</string>
|
||||||
<string name="check_for_update">Check for update</string>
|
<string name="check_for_update">Check for update</string>
|
||||||
|
<string name="no_update_available">No update available</string>
|
||||||
<string name="privacy_policy_title">Mastodon and your privacy</string>
|
<string name="privacy_policy_title">Mastodon and your privacy</string>
|
||||||
<string name="privacy_policy_subtitle">Although the Mastodon app does not collect any data, the server you sign up through may have a different policy. Take a minute to review and agree to the Mastodon app privacy policy and your server\'s privacy policy.</string>
|
<string name="privacy_policy_subtitle">Although the Mastodon app does not collect any data, the server you sign up through may have a different policy. Take a minute to review and agree to the Mastodon app privacy policy and your server\'s privacy policy.</string>
|
||||||
<string name="i_agree">I Agree</string>
|
<string name="i_agree">I Agree</string>
|
||||||
|
|
Loading…
Reference in New Issue