Reworked Notify class
This commit is contained in:
@@ -120,7 +120,7 @@ public class CertifyResult extends OperationResult {
|
||||
mCertifyError, mCertifyError);
|
||||
}
|
||||
|
||||
return Notify.createNotify(activity, str, duration, style, new ActionListener() {
|
||||
return Notify.create(activity, str, duration, style, new ActionListener() {
|
||||
@Override
|
||||
public void onAction() {
|
||||
Intent intent = new Intent(
|
||||
|
||||
@@ -116,7 +116,7 @@ public class DeleteResult extends OperationResult {
|
||||
}
|
||||
}
|
||||
|
||||
return Notify.createNotify(activity, str, duration, style, new ActionListener() {
|
||||
return Notify.create(activity, str, duration, style, new ActionListener() {
|
||||
@Override
|
||||
public void onAction() {
|
||||
Intent intent = new Intent(
|
||||
|
||||
@@ -179,7 +179,7 @@ public class ImportKeyResult extends OperationResult {
|
||||
}
|
||||
}
|
||||
|
||||
return Notify.createNotify(activity, str, duration, style, new ActionListener() {
|
||||
return Notify.create(activity, str, duration, style, new ActionListener() {
|
||||
@Override
|
||||
public void onAction() {
|
||||
Intent intent = new Intent(
|
||||
|
||||
@@ -273,19 +273,19 @@ public abstract class OperationResult implements Parcelable {
|
||||
}
|
||||
|
||||
if (getLog() == null || getLog().isEmpty()) {
|
||||
return Notify.createNotify(activity, msgId, Notify.LENGTH_LONG, style);
|
||||
return Notify.create(activity, msgId, Notify.LENGTH_LONG, style);
|
||||
}
|
||||
|
||||
return Notify.createNotify(activity, msgId, Notify.LENGTH_LONG, style,
|
||||
new ActionListener() {
|
||||
@Override
|
||||
public void onAction() {
|
||||
Intent intent = new Intent(
|
||||
activity, LogDisplayActivity.class);
|
||||
intent.putExtra(LogDisplayFragment.EXTRA_RESULT, OperationResult.this);
|
||||
activity.startActivity(intent);
|
||||
}
|
||||
}, R.string.view_log);
|
||||
return Notify.create(activity, msgId, Notify.LENGTH_LONG, style,
|
||||
new ActionListener() {
|
||||
@Override
|
||||
public void onAction() {
|
||||
Intent intent = new Intent(
|
||||
activity, LogDisplayActivity.class);
|
||||
intent.putExtra(LogDisplayFragment.EXTRA_RESULT, OperationResult.this);
|
||||
activity.startActivity(intent);
|
||||
}
|
||||
}, R.string.view_log);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user