Minor corrections
This commit is contained in:
@@ -119,18 +119,15 @@ public class Actions
|
||||
// {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||
{
|
||||
String[] params = action.getParameter2().split(Action.actionParameter2Split);
|
||||
String[] params = action.getParameter2().split(Action.actionParameter2Split, -1);
|
||||
|
||||
String myApp = params[0];
|
||||
String myTitleDir = params[1];
|
||||
String requiredTitle = params[2];
|
||||
String myTextDir = params[3];
|
||||
String requiredText = "";
|
||||
String requiredText = params[4];
|
||||
String method = ActivityManageActionCloseNotification.dismissRegularString;
|
||||
|
||||
if (params.length >= 5)
|
||||
requiredText = params[4];
|
||||
|
||||
if (params.length >= 6 && !params[5].equals(ActivityManageActionCloseNotification.dismissRegularString))
|
||||
method = params[5];
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ public class ActivityManageRule extends Activity
|
||||
public void onClick(View v)
|
||||
{
|
||||
// Open help popup
|
||||
Miscellaneous.messageBox(getResources().getString(R.string.whatsThis), getResources().getString(R.string.helpTextToggable), ActivityManageRule.this).show();
|
||||
Miscellaneous.messageBox(getResources().getString(R.string.whatsThis), getResources().getString(R.string.helpTextToggleable), ActivityManageRule.this).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -331,17 +331,17 @@ public class Trigger
|
||||
{
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||
{
|
||||
String[] params = this.getTriggerParameter2().split(triggerParameter2Split);
|
||||
String[] params = this.getTriggerParameter2().split(triggerParameter2Split, -1);
|
||||
|
||||
String myApp = params[0];
|
||||
String myTitleDir = params[1];
|
||||
String requiredTitle = params[2];
|
||||
String myTextDir = params[3];
|
||||
String requiredText;
|
||||
if (params.length >= 5)
|
||||
requiredText = params[4];
|
||||
else
|
||||
requiredText = "";
|
||||
// String requiredText;
|
||||
// if (params.length >= 5)
|
||||
String requiredText = params[4];
|
||||
// else
|
||||
// requiredText = "";
|
||||
|
||||
if(this.getTriggerParameter())
|
||||
{
|
||||
|
||||
@@ -100,7 +100,7 @@ public class NotificationListener extends NotificationListenerService// implemen
|
||||
|
||||
synchronized boolean checkNotification(boolean created, StatusBarNotification sbn)
|
||||
{
|
||||
//TODO: Merge with functino in Trigger class
|
||||
//TODO: Merge with function in Trigger class
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT)
|
||||
{
|
||||
lastNotification = convertNotificationToSimpleNotification(created, sbn);
|
||||
|
||||
Reference in New Issue
Block a user