mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
Merge pull request #5569 from nextcloud/removeUnusedClass
remove unused class
This commit is contained in:
commit
232c801c9f
5 changed files with 1 additions and 202 deletions
|
@ -1,2 +1,2 @@
|
|||
DO NOT TOUCH; GENERATED BY DRONE
|
||||
<span class="mdl-layout-title">Lint Report: 92 warnings</span>
|
||||
<span class="mdl-layout-title">Lint Report: 94 warnings</span>
|
||||
|
|
|
@ -1,111 +0,0 @@
|
|||
/**
|
||||
* ownCloud Android client application
|
||||
*
|
||||
* Copyright (C) 2015 ownCloud Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.owncloud.android.ui.dialog;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.webkit.WebView;
|
||||
|
||||
import com.owncloud.android.R;
|
||||
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
|
||||
|
||||
/**
|
||||
* Dialog to show the contents of res/raw/CHANGELOG.txt
|
||||
*/
|
||||
public class ChangelogDialog extends DialogFragment {
|
||||
|
||||
private static final String ARG_CANCELABLE = ChangelogDialog.class.getCanonicalName() +
|
||||
".ARG_CANCELABLE";
|
||||
|
||||
|
||||
/**
|
||||
* Public factory method to get dialog instances.
|
||||
*
|
||||
* @param cancelable If 'true', the dialog can be cancelled by the user input
|
||||
* (BACK button, touch outside...)
|
||||
* @return New dialog instance, ready to show.
|
||||
*/
|
||||
public static ChangelogDialog newInstance(boolean cancelable) {
|
||||
ChangelogDialog fragment = new ChangelogDialog();
|
||||
Bundle args = new Bundle();
|
||||
args.putBoolean(ARG_CANCELABLE, cancelable);
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
/// load the custom view to insert in the dialog, between title and
|
||||
WebView webview = new WebView(getActivity());
|
||||
webview.loadUrl("file:///android_res/raw/" +
|
||||
getResources().getResourceEntryName(R.raw.changelog) + ".html");
|
||||
|
||||
/// build the dialog
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
|
||||
Dialog dialog = builder.setView(webview)
|
||||
.setIcon(R.mipmap.ic_launcher)
|
||||
//.setTitle(R.string.whats_new)
|
||||
.setPositiveButton(R.string.common_ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
}).create();
|
||||
|
||||
dialog.setCancelable(getArguments().getBoolean(ARG_CANCELABLE));
|
||||
return dialog;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*-/
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
/// load the custom layout
|
||||
View view = inflater.inflate(R.layout.fragment_changelog, container);
|
||||
mEditText = (EditText) view.findViewById(R.id.txt_your_name);
|
||||
getDialog().setTitle(R.string.whats_new);
|
||||
|
||||
/// read full contents of the change log file (don't make it too big)
|
||||
InputStream changeLogStream = getResources().openRawResource(R.raw.changelog);
|
||||
Scanner scanner = new java.util.Scanner(changeLogStream).useDelimiter("\\A");
|
||||
String text = scanner.hasNext() ? scanner.next() : "";
|
||||
|
||||
/// make clickable the links in the change log file
|
||||
SpannableString sText = new SpannableString(text);
|
||||
Linkify.addLinks(sText, Linkify.ALL);
|
||||
|
||||
return view;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<html>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015 ownCloud Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2,
|
||||
as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<body>
|
||||
<p>
|
||||
Dieses Ger<65>t l<>uft mit Android 4.1.x.
|
||||
</p>
|
||||
<p>
|
||||
In dieser Version von Android existiert ein Bug, der nach jedem Neustart eine erneute Eingabe der ownCloud Login-Informationen n<>tig macht. Um das zu umgehen installieren Sie bitte diese kostenlose Hilfs-App:
|
||||
</p>
|
||||
<p style="text-align:center">
|
||||
<a href="http://play.google.com/store/apps/details?id=com.owncloud.android.workaround.accounts">ownCloud Jelly Bean Workaround</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1,30 +0,0 @@
|
|||
<html>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015 ownCloud Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2,
|
||||
as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<body>
|
||||
<p>
|
||||
Su dispositivo ejecuta Android 4.1.x.
|
||||
</p>
|
||||
<p>
|
||||
Para prevenir la p<>rdida de las credenciales de sus cuentas ownCloud en cada reinicio, por favor, instale esta app gratuita que evita el problema en Jelly Bean:
|
||||
</p>
|
||||
<p style="text-align:center">
|
||||
<a href="http://play.google.com/store/apps/details?id=com.owncloud.android.workaround.accounts">ownCloud Jelly Bean Workaround</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1,30 +0,0 @@
|
|||
<html>
|
||||
<!--
|
||||
ownCloud Android client application
|
||||
|
||||
Copyright (C) 2015 ownCloud Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2,
|
||||
as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<body>
|
||||
<p>
|
||||
Your device runs Android 4.1.x.
|
||||
</p>
|
||||
<p>
|
||||
To prevent losing your ownCloud account credentials on every reboot, please, install this free helper app to work around the bug in Jelly Bean:
|
||||
</p>
|
||||
<p style="text-align:center">
|
||||
<a href="http://play.google.com/store/apps/details?id=com.owncloud.android.workaround.accounts">ownCloud Jelly Bean Workaround</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue