Refactoring

pull/162/head
M66B 5 years ago
parent decc11f74a
commit fbc8a983a7

@ -1052,7 +1052,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
return intent;
}
public static class FragmentDialogPassword extends FragmentDialogEx {
public static class FragmentDialogPassword extends FragmentDialogBase {
private TextInputLayout etPassword1;
private TextInputLayout etPassword2;

@ -1119,7 +1119,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
return intent;
}
public static class FragmentDialogFirst extends FragmentDialogEx {
public static class FragmentDialogFirst extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -1136,7 +1136,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}
}
public static class FragmentDialogRate extends FragmentDialogEx {
public static class FragmentDialogRate extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -3638,7 +3638,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
void finish();
}
public static class FragmentDialogLink extends FragmentDialogEx {
public static class FragmentDialogLink extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -3815,7 +3815,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
}
public static class FragmentDialogImage extends FragmentDialogEx {
public static class FragmentDialogImage extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -3851,7 +3851,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
}
public static class FragmentDialogFull extends FragmentDialogEx {
public static class FragmentDialogFull extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -3885,7 +3885,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
}
public static class FragmentDialogWebView extends FragmentDialogEx {
public static class FragmentDialogWebView extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -4050,7 +4050,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
}
public static class FragmentKeywordManage extends FragmentDialogEx {
public static class FragmentKeywordManage extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -4144,7 +4144,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
}
public static class FragmentKeywordAdd extends FragmentDialogEx {
public static class FragmentKeywordAdd extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -265,7 +265,7 @@ public class FragmentAnswer extends FragmentBase {
}.execute(this, args, "answer:delete");
}
public static class FragmentInfo extends FragmentDialogEx {
public static class FragmentInfo extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -3400,7 +3400,7 @@ public class FragmentCompose extends FragmentBase {
}
};
public static class FragmentDialogContactGroup extends FragmentDialogEx {
public static class FragmentDialogContactGroup extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -3458,7 +3458,7 @@ public class FragmentCompose extends FragmentBase {
}
}
public static class FragmentDialogAnswer extends FragmentDialogEx {
public static class FragmentDialogAnswer extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -3502,7 +3502,7 @@ public class FragmentCompose extends FragmentBase {
}
}
public static class FragmentDialogLink extends FragmentDialogEx {
public static class FragmentDialogLink extends FragmentDialogBase {
private EditText etLink;
@Override
@ -3554,7 +3554,7 @@ public class FragmentCompose extends FragmentBase {
}
}
public static class FragmentDialogSend extends FragmentDialogEx {
public static class FragmentDialogSend extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -164,7 +164,7 @@ public class FragmentContacts extends FragmentBase {
Helper.viewFAQ(getContext(), 84);
}
public static class FragmentDelete extends FragmentDialogEx {
public static class FragmentDelete extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -34,7 +34,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.preference.PreferenceManager;
public class FragmentDialogAsk extends FragmentDialogEx {
public class FragmentDialogAsk extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -17,7 +17,7 @@ import androidx.lifecycle.OnLifecycleEvent;
import static android.app.Activity.RESULT_CANCELED;
public class FragmentDialogEx extends DialogFragment {
public class FragmentDialogBase extends DialogFragment {
private boolean once = false;
private LifecycleOwner owner;
private LifecycleRegistry registry;
@ -115,8 +115,8 @@ public class FragmentDialogEx extends DialogFragment {
fragment.getViewLifecycleOwner().getLifecycle().addObserver(new LifecycleObserver() {
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
public void onDestroy() {
Log.i("Reset target " + FragmentDialogEx.this);
FragmentDialogEx.super.setTargetFragment(null, requestCode);
Log.i("Reset target " + FragmentDialogBase.this);
FragmentDialogBase.super.setTargetFragment(null, requestCode);
}
});
}

@ -43,7 +43,7 @@ import java.util.Date;
import static android.app.Activity.RESULT_CANCELED;
import static android.app.Activity.RESULT_OK;
public class FragmentDialogDuration extends FragmentDialogEx {
public class FragmentDialogDuration extends FragmentDialogBase {
private Calendar cal = Calendar.getInstance();
@Override

@ -36,7 +36,7 @@ import java.util.List;
import static android.app.Activity.RESULT_OK;
public class FragmentDialogFolder extends FragmentDialogEx {
public class FragmentDialogFolder extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -20,7 +20,7 @@ import java.util.Locale;
import io.noties.markwon.Markwon;
public class FragmentDialogMarkdown extends FragmentDialogEx {
public class FragmentDialogMarkdown extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -1143,7 +1143,7 @@ public class FragmentIdentity extends FragmentBase {
etSignature.setTag(html);
}
public static class FragmentDialogHtml extends FragmentDialogEx {
public static class FragmentDialogHtml extends FragmentDialogBase {
private EditText etHtml;
@Override

@ -4641,7 +4641,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
};
}
public static class FragmentDialogReporting extends FragmentDialogEx {
public static class FragmentDialogReporting extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -4681,7 +4681,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
}
public static class FragmentDialogAccount extends FragmentDialogEx {
public static class FragmentDialogAccount extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
@ -4719,7 +4719,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
}
public static class FragmentDialogError extends FragmentDialogEx {
public static class FragmentDialogError extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -126,7 +126,7 @@ public class FragmentOperations extends FragmentBase {
Helper.viewFAQ(getContext(), 3);
}
public static class DialogDelete extends FragmentDialogEx {
public static class DialogDelete extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -411,7 +411,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
swActionbar.setChecked(prefs.getBoolean("actionbar", true));
}
public static class FragmentDialogTheme extends FragmentDialogEx {
public static class FragmentDialogTheme extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -315,7 +315,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
return Helper.getTimeInstance(context, SimpleDateFormat.SHORT).format(cal.getTime());
}
public static class TimePickerFragment extends FragmentDialogEx implements TimePickerDialog.OnTimeSetListener {
public static class TimePickerFragment extends FragmentDialogBase implements TimePickerDialog.OnTimeSetListener {
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {

@ -499,7 +499,7 @@ public class FragmentQuickSetup extends FragmentBase {
}
}
public static class FragmentDialogDone extends FragmentDialogEx {
public static class FragmentDialogDone extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -998,7 +998,7 @@ public class FragmentRule extends FragmentBase {
return Helper.getTimeInstance(context, SimpleDateFormat.SHORT).format(cal.getTime());
}
public static class TimePickerFragment extends FragmentDialogEx implements TimePickerDialog.OnTimeSetListener {
public static class TimePickerFragment extends FragmentDialogBase implements TimePickerDialog.OnTimeSetListener {
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
@ -1027,7 +1027,7 @@ public class FragmentRule extends FragmentBase {
}
}
public static class FragmentDialogCheck extends FragmentDialogEx {
public static class FragmentDialogCheck extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -413,7 +413,7 @@ public class FragmentSetup extends FragmentBase {
btnPermissions.setEnabled(!has);
}
public static class FragmentDialogDoze extends FragmentDialogEx {
public static class FragmentDialogDoze extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -471,7 +471,7 @@ public class Helper {
fragment.show(manager, "error:unexpected");
}
public static class FragmentDialogUnexpected extends FragmentDialogEx {
public static class FragmentDialogUnexpected extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

Loading…
Cancel
Save