Remove unnecessary harmful finish() from SettingsActivity

Bug: 8560722
Change-Id: I825b135bd13aca17e712330660978b834648dbc3
main
Tadashi G. Takaoka 2013-04-15 16:21:42 +09:00
parent 1ec4c07a13
commit 216fb6a042
1 changed files with 2 additions and 7 deletions

View File

@ -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;
}
});