Commit 50cc33ec authored by Amin's avatar Amin

modify top bar behaviour

parent d233b972
......@@ -24,7 +24,6 @@ public class AccessItem extends AppCompatActivity {
setContentView(R.layout.activity_access_item);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -68,7 +68,6 @@ public class AddInfo extends AppCompatActivity {
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -25,7 +25,6 @@ public class FilterIssueList extends AppCompatActivity {
setContentView(R.layout.activity_filter_issue_list);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -19,7 +19,7 @@ public class History extends AppCompatActivity {
setContentView(R.layout.activity_history);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -20,7 +20,6 @@ public class IssueDetails extends AppCompatActivity {
setContentView(R.layout.activity_issue_details);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -26,7 +26,6 @@ public class Issues extends AppCompatActivity {
setContentView(R.layout.activity_issues);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -18,7 +18,6 @@ public class OwnerAcceptanceForm extends AppCompatActivity {
setContentView(R.layout.activity_owner_acceptance_form);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -17,7 +17,6 @@ public class OwnerAcceptanceFormDetail extends AppCompatActivity {
setContentView(R.layout.activity_owner_acceptance_form_detail);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
}
......
......@@ -28,7 +28,6 @@ public class SyncActivity extends AppCompatActivity {
setContentView(R.layout.activity_sync);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -21,7 +21,6 @@ public class TransactionDetails extends AppCompatActivity {
setContentView(R.layout.activity_transaction_details);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -18,7 +18,6 @@ public class UnitLayoutFullscreen extends AppCompatActivity {
setContentView(R.layout.activity_unit_layout_fullscreen);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -24,7 +24,6 @@ public class WithdrawIssue extends AppCompatActivity {
setContentView(R.layout.activity_withdraw_issue);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
......@@ -25,7 +25,6 @@ public class WithdrawIssueSummary extends AppCompatActivity {
setContentView(R.layout.activity_withdraw_issue_summary);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment