@@ -401,9 +401,7 @@ public void onClick(DialogInterface dialog, int id) {
401
401
checkIntent .setAction (TextToSpeech .Engine .ACTION_CHECK_TTS_DATA );
402
402
tts = new TextToSpeech (ctx , new TextToSpeech .OnInitListener () {
403
403
@ Override
404
- public void onInit (int i ) {
405
-
406
- }
404
+ public void onInit (int i ) {}
407
405
});
408
406
String engine = tts .getDefaultEngine ();
409
407
if (engine != null )
@@ -427,21 +425,6 @@ public void installShortcut(MenuItem item) {
427
425
Intent intent = new Intent (this , ShortcutProviderActivity .class );
428
426
429
427
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
- */
445
428
}
446
429
447
430
public void showAbout (MenuItem item ) {
@@ -506,10 +489,6 @@ public void onFailure(Throwable error) {
506
489
feedback .e (R .string .login_error );
507
490
}
508
491
});
509
-
510
- /*
511
-
512
- */
513
492
}
514
493
515
494
private void switchLogin () {
0 commit comments