Allow to schedule draft
This commit is contained in:
parent
f366776b9a
commit
1a9679daa7
|
@ -193,6 +193,7 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
|
||||||
private ArrayList<String> splitToot;
|
private ArrayList<String> splitToot;
|
||||||
private int stepSpliToot;
|
private int stepSpliToot;
|
||||||
private boolean removed;
|
private boolean removed;
|
||||||
|
private boolean restoredScheduled;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
@ -243,7 +244,7 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
|
||||||
changeColor();
|
changeColor();
|
||||||
//By default the toot is not restored so the id -1 is defined
|
//By default the toot is not restored so the id -1 is defined
|
||||||
currentToId = -1;
|
currentToId = -1;
|
||||||
boolean restoredScheduled = false;
|
restoredScheduled = false;
|
||||||
|
|
||||||
|
|
||||||
toot_it = findViewById(R.id.toot_it);
|
toot_it = findViewById(R.id.toot_it);
|
||||||
|
@ -1228,7 +1229,7 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
|
||||||
if( itemRestore != null)
|
if( itemRestore != null)
|
||||||
itemRestore.setVisible(false);
|
itemRestore.setVisible(false);
|
||||||
MenuItem itemSchedule = menu.findItem(R.id.action_schedule);
|
MenuItem itemSchedule = menu.findItem(R.id.action_schedule);
|
||||||
if( itemSchedule != null)
|
if( restoredScheduled )
|
||||||
itemSchedule.setVisible(false);
|
itemSchedule.setVisible(false);
|
||||||
}
|
}
|
||||||
MenuItem itemViewReply = menu.findItem(R.id.action_view_reply);
|
MenuItem itemViewReply = menu.findItem(R.id.action_view_reply);
|
||||||
|
|
Loading…
Reference in New Issue