@@ -244,12 +244,6 @@ public void run() {
244244 } else {
245245 Log .d (TAG , "Signing Complete" );
246246 listener .onSuccess (finalApk );
247-
248- if (toolkit .isExternalStorageAvailable ()) {
249- showNotification (context .getString (R .string .apk_file_saved ));
250- } else {
251- showNotification (context .getString (R .string .sd_card_notfound ));
252- }
253247 }
254248
255249 } catch (AutoKeyException | UnrecoverableKeyException x ) {
@@ -271,26 +265,6 @@ public void run() {
271265 }
272266 }
273267
274- private void showNotification (String description ) {
275- Intent intent = new Intent ();
276- intent .setAction (Intent .ACTION_VIEW );
277- File file = new File (finalApk );
278- intent .setDataAndType (Uri .fromFile (file ), "application/vnd.android.package-archive" );
279- PendingIntent pendingIntent = PendingIntent .getActivity (context , 0 , intent , 0 );
280- NotificationCompat .Builder mBuilder =
281- new NotificationCompat .Builder (toolkit )
282- .setSmallIcon (R .drawable .ic_stat_toggle_check_box )
283- .setContentTitle (context .getString (R .string .apk_generated ))
284- .setContentText (description )
285- .setContentIntent (pendingIntent )
286- .setAutoCancel (true );
287-
288- NotificationManager mNotificationManager =
289- (NotificationManager ) toolkit .getSystemService (Context .NOTIFICATION_SERVICE );
290- // mId allows you to update the notification later on.
291- mNotificationManager .notify (23 , mBuilder .build ());
292- }
293-
294268 public interface OnSignComplete {
295269 void onSuccess (String path );
296270
0 commit comments