Commit e48b70c7 authored by Romain Hunault's avatar Romain Hunault

Fix build error

parent 41bfd88b
......@@ -48,24 +48,5 @@ public class Contributors extends SettingsPreferenceFragment {
}
}
return super.onPreferenceTreeClick(preference);
if (preference.getKey().equals(KEY_E_CONTRIBUTORS)
|| preference.getKey().equals(KEY_E_SUPPORTERS) ) {
final Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_DEFAULT);
if (preference.getKey().equals(KEY_E_CONTRIBUTORS)) {
intent.setData(Uri.parse(URL_E_CONTRIBUTORS));
} else if (preference.getKey().equals(KEY_E_SUPPORTERS)) {
intent.setData(Uri.parse(URL_E_SUPPORTERS));
}
try {
startActivity(intent);
} catch (Exception e) {
Log.e(LOG_TAG, "Unable to start activity " + intent.toString());
}
}
return super.onPreferenceTreeClick(preference);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment