Loading app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java +3 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ import net.sourceforge.opencamera.ui.ArraySeekBarPreference; import net.sourceforge.opencamera.ui.FolderChooserDialog; import net.sourceforge.opencamera.ui.MyEditTextPreference; import android.annotation.SuppressLint; import android.app.Activity; import android.app.ActivityManager; import android.app.AlertDialog; Loading Loading @@ -1442,6 +1443,7 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared // clickable text is only supported if we call setMovementMethod on the TextView - which means we need to create // our own for the AlertDialog! @SuppressLint("InflateParams") // we add the view to the alert dialog in addTextViewForAlertDialog() final View dialog_view = LayoutInflater.from(getActivity()).inflate(R.layout.alertdialog_textview, null); final TextView textView = dialog_view.findViewById(R.id.text_view); Loading Loading @@ -1719,6 +1721,7 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared Spanned span = Html.fromHtml(getActivity().getResources().getString(R.string.preference_privacy_policy_text)); // clickable text is only supported if we call setMovementMethod on the TextView - which means we need to create // our own for the AlertDialog! @SuppressLint("InflateParams") // we add the view to the alert dialog in addTextViewForAlertDialog() final View dialog_view = LayoutInflater.from(getActivity()).inflate(R.layout.alertdialog_textview, null); final TextView textView = dialog_view.findViewById(R.id.text_view); textView.setText(span); Loading Loading
app/src/main/java/net/sourceforge/opencamera/MyPreferenceFragment.java +3 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ import net.sourceforge.opencamera.ui.ArraySeekBarPreference; import net.sourceforge.opencamera.ui.FolderChooserDialog; import net.sourceforge.opencamera.ui.MyEditTextPreference; import android.annotation.SuppressLint; import android.app.Activity; import android.app.ActivityManager; import android.app.AlertDialog; Loading Loading @@ -1442,6 +1443,7 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared // clickable text is only supported if we call setMovementMethod on the TextView - which means we need to create // our own for the AlertDialog! @SuppressLint("InflateParams") // we add the view to the alert dialog in addTextViewForAlertDialog() final View dialog_view = LayoutInflater.from(getActivity()).inflate(R.layout.alertdialog_textview, null); final TextView textView = dialog_view.findViewById(R.id.text_view); Loading Loading @@ -1719,6 +1721,7 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared Spanned span = Html.fromHtml(getActivity().getResources().getString(R.string.preference_privacy_policy_text)); // clickable text is only supported if we call setMovementMethod on the TextView - which means we need to create // our own for the AlertDialog! @SuppressLint("InflateParams") // we add the view to the alert dialog in addTextViewForAlertDialog() final View dialog_view = LayoutInflater.from(getActivity()).inflate(R.layout.alertdialog_textview, null); final TextView textView = dialog_view.findViewById(R.id.text_view); textView.setText(span); Loading