|
|
@ -324,10 +324,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
private static final int REQUEST_EMPTY_FOLDER = 20;
|
|
|
|
private static final int REQUEST_EMPTY_FOLDER = 20;
|
|
|
|
private static final int REQUEST_BOUNDARY_RETRY = 21;
|
|
|
|
private static final int REQUEST_BOUNDARY_RETRY = 21;
|
|
|
|
static final int REQUEST_PICK_CONTACT = 22;
|
|
|
|
static final int REQUEST_PICK_CONTACT = 22;
|
|
|
|
static final int REQUEST_KEYWORDS = 23;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static final String ACTION_STORE_RAW = BuildConfig.APPLICATION_ID + ".STORE_RAW";
|
|
|
|
static final String ACTION_STORE_RAW = BuildConfig.APPLICATION_ID + ".STORE_RAW";
|
|
|
|
static final String ACTION_DECRYPT = BuildConfig.APPLICATION_ID + ".DECRYPT";
|
|
|
|
static final String ACTION_DECRYPT = BuildConfig.APPLICATION_ID + ".DECRYPT";
|
|
|
|
|
|
|
|
static final String ACTION_KEYWORDS = BuildConfig.APPLICATION_ID + ".KEYWORDS";
|
|
|
|
|
|
|
|
|
|
|
|
private static final long REVIEW_ASK_DELAY = 21 * 24 * 3600 * 1000L; // milliseconds
|
|
|
|
private static final long REVIEW_ASK_DELAY = 21 * 24 * 3600 * 1000L; // milliseconds
|
|
|
|
private static final long REVIEW_LATER_DELAY = 3 * 24 * 3600 * 1000L; // milliseconds
|
|
|
|
private static final long REVIEW_LATER_DELAY = 3 * 24 * 3600 * 1000L; // milliseconds
|
|
|
@ -3184,6 +3184,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
IntentFilter iff = new IntentFilter();
|
|
|
|
IntentFilter iff = new IntentFilter();
|
|
|
|
iff.addAction(ACTION_STORE_RAW);
|
|
|
|
iff.addAction(ACTION_STORE_RAW);
|
|
|
|
iff.addAction(ACTION_DECRYPT);
|
|
|
|
iff.addAction(ACTION_DECRYPT);
|
|
|
|
|
|
|
|
iff.addAction(ACTION_KEYWORDS);
|
|
|
|
lbm.registerReceiver(receiver, iff);
|
|
|
|
lbm.registerReceiver(receiver, iff);
|
|
|
|
|
|
|
|
|
|
|
|
ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
|
|
|
|
ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
|
|
|
@ -4829,6 +4830,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
onStoreRaw(intent);
|
|
|
|
onStoreRaw(intent);
|
|
|
|
else if (ACTION_DECRYPT.equals(action))
|
|
|
|
else if (ACTION_DECRYPT.equals(action))
|
|
|
|
onDecrypt(intent);
|
|
|
|
onDecrypt(intent);
|
|
|
|
|
|
|
|
else if (ACTION_KEYWORDS.equals(action))
|
|
|
|
|
|
|
|
adapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -5050,9 +5053,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
if (resultCode == RESULT_OK && data != null)
|
|
|
|
if (resultCode == RESULT_OK && data != null)
|
|
|
|
onPickContact(data.getData());
|
|
|
|
onPickContact(data.getData());
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case REQUEST_KEYWORDS:
|
|
|
|
|
|
|
|
adapter.notifyDataSetChanged();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|