Skip to content

Commit 50aa2dc

Browse files
author
Chris Bellew
committed
Code cleanup.
1 parent 34ca7ff commit 50aa2dc

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

Voice Control For Plex/src/main/java/com/atomjack/vcfp/activities/MainActivity.java

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,7 @@ public void onClick(DialogInterface dialog, int id) {
401401
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
402402
tts = new TextToSpeech(ctx, new TextToSpeech.OnInitListener() {
403403
@Override
404-
public void onInit(int i) {
405-
406-
}
404+
public void onInit(int i) {}
407405
});
408406
String engine = tts.getDefaultEngine();
409407
if (engine != null)
@@ -427,21 +425,6 @@ public void installShortcut(MenuItem item) {
427425
Intent intent = new Intent(this, ShortcutProviderActivity.class);
428426

429427
startActivityForResult(intent, RESULT_SHORTCUT_CREATED);
430-
431-
// startActivity(intent);
432-
/*
433-
Intent.ShortcutIconResource icon = Intent.ShortcutIconResource.fromContext(this, R.drawable.ic_launcher);
434-
435-
Intent launchIntent = new Intent(this, ShortcutActivity.class);
436-
437-
final Intent intent = new Intent();
438-
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, launchIntent);
439-
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_name));
440-
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, R.drawable.ic_launcher));
441-
intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
442-
443-
sendBroadcast(intent);
444-
*/
445428
}
446429

447430
public void showAbout(MenuItem item) {
@@ -506,10 +489,6 @@ public void onFailure(Throwable error) {
506489
feedback.e(R.string.login_error);
507490
}
508491
});
509-
510-
/*
511-
512-
*/
513492
}
514493

515494
private void switchLogin() {

0 commit comments

Comments
 (0)