// Path: src/com/lithidsw/findex/service/IndexService.java
// public class IndexService extends Service {
// 
//     Context context;
// 
//     @Override
//     public IBinder onBind(Intent intent) {
//         return null;
//     }
// 
//     @Override
//     public int onStartCommand(Intent intent, int flags, int startId) {
//         context = this;
//         start();
//         return (START_NOT_STICKY);
//     }
// 
//     @Override
//     public void onDestroy() {
//         stopForeground(true);
//     }
// 
//     private void start() {
//         final Thread thread = new Thread() {
//             @Override
//             public void run() {
//                 new FileWalker(context).main();
//                 stopSelf();
//                 WidgetUtils.update(context);
//                 sendBroadcast(new Intent(C.ACTION_INDEX_COMPLETE));
//             }
//         };
//         thread.start();
//         fg(context.getResources().getString(R.string.index_running));
//     }
// 
//     private void fg(String message) {
//         Bitmap bit = BitmapFactory.decodeResource(getResources(),
//                 R.drawable.ic_launcher);
//         NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(
//                 context)
//                 .setSmallIcon(R.drawable.ic_launcher)
//                 .setLargeIcon(bit)
//                 .setProgress(0, 0, true)
//                 .setContentTitle(context.getResources().getString(R.string.app_name))
//                 .setContentText(message);
// 
//         Intent intent = new Intent(context, MainActivity.class);
//         intent.setAction(Intent.ACTION_MAIN);
//         intent.addCategory(Intent.CATEGORY_LAUNCHER);
// 
//         PendingIntent resultPendingIntent = PendingIntent.getActivity(context,
//                 0, intent, 0);
//         mBuilder.setContentIntent(resultPendingIntent);
//         startForeground(1, mBuilder.build());
//     }
// }
// 
// Path: src/com/lithidsw/findex/utils/C.java
// public class C {
//     public static final String PREF = "com.lithidsw.findex_preferences";
//     public static final String THIS = "com.lithidsw.findex";
//     public static final String DEFAULT_THEME = "AppThemeStock";
//     public static final String ID = "6E3A5B3D7F5A94C5A6FF00BD6717027A";
//     public static final String PREF_TOGGLE_DARK = "pref_toggle_dark";
//     public static final String PREF_FIRST_RUN = "pref_first_run";
//     public static final String PREF_TOGGLE_GRID = "pref_toggle_grid";
//     public static final String PREF_EXCLUDE_FOLDERS = "pref_exclude_folders";
//     public static final String PREF_THEME = "pref_theme";
//     public static final String PREF_COLOR = "pref_color";
// 
//     public static final String ACTION_INDEX_COMPLETE = "com.lithidsw.findex.ACTION_INDEX_COMPLETE";
//     public static final String ACTION_REFRESH = "com.lithidsw.findex.ACTION_REFRESH";
// 
//     public static final String TAG_DOCUMENTS = "Documents";
//     public static final String TAG_DOWNLOADS = "Downloads";
//     public static final String TAG_PICTURES = "Pictures";
//     public static final String TAG_SOUNDS = "Sounds";
//     public static final String TAG_VIDEO = "Videos";
// 
//     public static final int NUM_MAIN_TITLES = 6;
//     public static final long MIL_24_HOURS = 86400000;
//     public static final long MIL_30_DAYS = MIL_24_HOURS * 30;
// 
//     public static final int CURRENT_SDK = Build.VERSION.SDK_INT;
//     public static final int SDK_19 = Build.VERSION_CODES.KITKAT;
// }


import android.app.ActivityManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.lithidsw.findex.service.IndexService;
import com.lithidsw.findex.utils.C;
import java.util.List;
package com.lithidsw.findex.receiver;




public class ActionReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
// Path: src/com/lithidsw/findex/service/IndexService.java
// public class IndexService extends Service {
// 
//     Context context;
// 
//     @Override
//     public IBinder onBind(Intent intent) {
//         return null;
//     }
// 
//     @Override
//     public int onStartCommand(Intent intent, int flags, int startId) {
//         context = this;
//         start();
//         return (START_NOT_STICKY);
//     }
// 
//     @Override
//     public void onDestroy() {
//         stopForeground(true);
//     }
// 
//     private void start() {
//         final Thread thread = new Thread() {
//             @Override
//             public void run() {
//                 new FileWalker(context).main();
//                 stopSelf();
//                 WidgetUtils.update(context);
//                 sendBroadcast(new Intent(C.ACTION_INDEX_COMPLETE));
//             }
//         };
//         thread.start();
//         fg(context.getResources().getString(R.string.index_running));
//     }
// 
//     private void fg(String message) {
//         Bitmap bit = BitmapFactory.decodeResource(getResources(),
//                 R.drawable.ic_launcher);
//         NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(
//                 context)
//                 .setSmallIcon(R.drawable.ic_launcher)
//                 .setLargeIcon(bit)
//                 .setProgress(0, 0, true)
//                 .setContentTitle(context.getResources().getString(R.string.app_name))
//                 .setContentText(message);
// 
//         Intent intent = new Intent(context, MainActivity.class);
//         intent.setAction(Intent.ACTION_MAIN);
//         intent.addCategory(Intent.CATEGORY_LAUNCHER);
// 
//         PendingIntent resultPendingIntent = PendingIntent.getActivity(context,
//                 0, intent, 0);
//         mBuilder.setContentIntent(resultPendingIntent);
//         startForeground(1, mBuilder.build());
//     }
// }
// 
// Path: src/com/lithidsw/findex/utils/C.java
// public class C {
//     public static final String PREF = "com.lithidsw.findex_preferences";
//     public static final String THIS = "com.lithidsw.findex";
//     public static final String DEFAULT_THEME = "AppThemeStock";
//     public static final String ID = "6E3A5B3D7F5A94C5A6FF00BD6717027A";
//     public static final String PREF_TOGGLE_DARK = "pref_toggle_dark";
//     public static final String PREF_FIRST_RUN = "pref_first_run";
//     public static final String PREF_TOGGLE_GRID = "pref_toggle_grid";
//     public static final String PREF_EXCLUDE_FOLDERS = "pref_exclude_folders";
//     public static final String PREF_THEME = "pref_theme";
//     public static final String PREF_COLOR = "pref_color";
// 
//     public static final String ACTION_INDEX_COMPLETE = "com.lithidsw.findex.ACTION_INDEX_COMPLETE";
//     public static final String ACTION_REFRESH = "com.lithidsw.findex.ACTION_REFRESH";
// 
//     public static final String TAG_DOCUMENTS = "Documents";
//     public static final String TAG_DOWNLOADS = "Downloads";
//     public static final String TAG_PICTURES = "Pictures";
//     public static final String TAG_SOUNDS = "Sounds";
//     public static final String TAG_VIDEO = "Videos";
// 
//     public static final int NUM_MAIN_TITLES = 6;
//     public static final long MIL_24_HOURS = 86400000;
//     public static final long MIL_30_DAYS = MIL_24_HOURS * 30;
// 
//     public static final int CURRENT_SDK = Build.VERSION.SDK_INT;
//     public static final int SDK_19 = Build.VERSION_CODES.KITKAT;
// }


// Path: src/com/lithidsw/findex/receiver/ActionReceiver.java
import android.app.ActivityManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.lithidsw.findex.service.IndexService;
import com.lithidsw.findex.utils.C;
import java.util.List;

package com.lithidsw.findex.receiver;




public class ActionReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if ((intent.getAction() != null)) {