Merge "Remove unnecessary harmful finish() from SettingsActivity"
This commit is contained in:
commit
4b6756db3c
1 changed files with 2 additions and 7 deletions
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package com.android.inputmethod.latin;
|
package com.android.inputmethod.latin;
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.app.backup.BackupManager;
|
import android.app.backup.BackupManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
@ -115,12 +114,8 @@ public final class SettingsFragment extends InputMethodSettingsFragment
|
||||||
if (FeedbackUtils.isFeedbackFormSupported()) {
|
if (FeedbackUtils.isFeedbackFormSupported()) {
|
||||||
feedbackSettings.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
feedbackSettings.setOnPreferenceClickListener(new OnPreferenceClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onPreferenceClick(Preference arg0) {
|
public boolean onPreferenceClick(final Preference pref) {
|
||||||
final Activity activity = getActivity();
|
FeedbackUtils.showFeedbackForm(getActivity());
|
||||||
FeedbackUtils.showFeedbackForm(activity);
|
|
||||||
if (!activity.isFinishing()) {
|
|
||||||
activity.finish();
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue