mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '1a42236a8b22e0d3ca6f26704f052b8f83c991c5': Remove unnecessary harmful finish() from SettingsActivity
This commit is contained in:
commit
577dc18906
@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.inputmethod.latin;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.backup.BackupManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@ -115,12 +114,8 @@ public final class SettingsFragment extends InputMethodSettingsFragment
|
||||
if (FeedbackUtils.isFeedbackFormSupported()) {
|
||||
feedbackSettings.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||
@Override
|
||||
public boolean onPreferenceClick(Preference arg0) {
|
||||
final Activity activity = getActivity();
|
||||
FeedbackUtils.showFeedbackForm(activity);
|
||||
if (!activity.isFinishing()) {
|
||||
activity.finish();
|
||||
}
|
||||
public boolean onPreferenceClick(final Preference pref) {
|
||||
FeedbackUtils.showFeedbackForm(getActivity());
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user