Commit ac6cb774 authored by Roger Barton's avatar Roger Barton
Browse files

Lint

parent 4a14058e
......@@ -36,7 +36,6 @@ public class JobInfo {
/**
* Overwrite the current data
* @param json
*/
public void UpdateJob(JSONObject json)
{
......
......@@ -127,7 +127,7 @@ public class JobListAdapter extends BaseRecyclerAdapter {
* This is where the data in the ui is set. Note that position is the position on screen whereas getAdapterPos is the position in the whole list
*/
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int screenPosition) { //NOTE: screenPosition supplied is position on screen not in the list!, use holder.getAdapterPosition() indstead
public void onBindViewHolder(RecyclerView.ViewHolder holder, int screenPosition) { //NOTE: screenPosition supplied is position on screen not in the list!, use holder.getAdapterPosition() instead
if(activity == null || holder == null)
return;
......
......@@ -102,8 +102,6 @@ public class Jobs {
/**
* Will update a given event with the id
* @param json
* @param jobId
* @return true if the event was found and updated
*/
public static boolean UpdateSingleJob(JSONObject json, @NonNull String jobId){
......
......@@ -85,7 +85,6 @@ public final class PersistentStorage {
/**
* Clears the stored userinfo, done in async
* @param context
*/
public static void ClearUser(Context context)
{
......
......@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Other"
android:hint="@string/other"
android:inputType="textCapSentences|textAutoCorrect|textMultiLine"
android:selectAllOnFocus="false"
android:singleLine="false"
......
......@@ -2,7 +2,6 @@
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary">
......@@ -80,7 +79,7 @@
android:layout_marginStart="8dp"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:text="Set"
android:text="@string/tap_to_set"
android:textColor="@android:color/white"
android:textSize="18sp" />
......@@ -113,7 +112,7 @@
android:layout_marginStart="8dp"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:text="Set"
android:text="@string/tap_to_set"
android:textColor="@android:color/white"
android:textSize="18sp" />
......
......@@ -2,7 +2,6 @@
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary">
......
......@@ -2,7 +2,6 @@
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary">
......
......@@ -2,7 +2,6 @@
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary">
......
......@@ -2,7 +2,6 @@
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary">
......
......@@ -9,8 +9,8 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:layout_height="@dimen/action_bar_height"
android:background="@color/primary"
android:theme="@style/AppThemeLight">
<android.support.constraint.ConstraintLayout
......
......@@ -3,13 +3,11 @@
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/list_item_event_constraint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="visible"
android:background="?attr/selectableItemBackground">
android:visibility="visible">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
......@@ -55,7 +53,7 @@
android:layout_width="wrap_content"
android:layout_height="0dp"
android:gravity="top|start"
android:text="NEW\u0020"
android:text="@string/new_caps"
android:textAppearance="@style/Subheader"
android:textColor="@color/primary"
android:textSize="12sp"
......
......@@ -51,7 +51,7 @@
android:layout_height="@dimen/company_logo_height_detail"
android:adjustViewBounds="true"
android:clickable="true"
android:focusable="auto"
android:focusable="true"
android:onClick="ScrollToTop"
android:visibility="visible"
custom:layout_constraintTop_toBottomOf="@id/toolbar_include" />
......
......@@ -3,13 +3,11 @@
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/list_item_event_constraint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="visible"
android:background="?attr/selectableItemBackground">
android:visibility="visible">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
......@@ -32,7 +30,7 @@
app:srcCompat="@mipmap/amiv_logo" />
<LinearLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_weight="1"
......@@ -68,7 +66,7 @@
android:layout_width="wrap_content"
android:layout_height="0dp"
android:gravity="top|start"
android:text="NEW\u0020"
android:text="@string/new_caps"
android:textAppearance="@style/Subheader"
android:textColor="@color/primary"
android:textSize="12sp"
......
......@@ -5,4 +5,6 @@
<dimen name="nav_header_vertical_spacing">8dp</dimen>
<dimen name="nav_header_height">156dp</dimen>
<dimen name="company_logo_height_detail">80dp</dimen>
<dimen name="action_bar_height">56dp</dimen>
</resources>
<preference-headers xmlns:android="http://schemas.android.com/apk/res/android">
<!-- These settings headers are only used on tablets. -->
<header
android:fragment="ch.amiv.android_app.core.SettingsActivity$GeneralPreferenceFragment"
android:icon="@drawable/ic_info_black_24dp"
android:title="@string/pref_header_general" />
<header
android:fragment="ch.amiv.android_app.core.SettingsActivity$NotificationPreferenceFragment"
android:icon="@drawable/ic_notifications"
android:title="@string/pref_header_notifications" />
<header
android:fragment="ch.amiv.android_app.core.SettingsActivity$DataSyncPreferenceFragment"
android:icon="@drawable/ic_sync_black_24dp"
android:title="@string/pref_header_data_sync" />
</preference-headers>
Supports Markdown
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