1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-22 12:22:08 +01:00

Fixed lint issues (suppressed, where they cant be fixed)

This commit is contained in:
vanitasvitae 2016-11-04 23:28:57 +01:00
parent a151d37a4e
commit d17d89f7f9
Signed by: vanitasvitae
GPG key ID: DCCFB3302C9E4615
12 changed files with 40 additions and 13 deletions

View file

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.dfa.diaspora_android"> xmlns:tools="http://schemas.android.com/tools"
package="com.github.dfa.diaspora_android"
tools:ignore="GoogleAppIndexingWarning">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@ -15,7 +17,8 @@
<provider <provider
android:name="com.github.dfa.diaspora_android.service.HashtagContentProvider" android:name="com.github.dfa.diaspora_android.service.HashtagContentProvider"
android:authorities="com.github.dfa.diaspora_android.mainactivity" /> android:authorities="com.github.dfa.diaspora_android.mainactivity"
android:exported="false"/>
<service <service
android:name="com.github.dfa.diaspora_android.service.FetchPodsService" android:name="com.github.dfa.diaspora_android.service.FetchPodsService"

View file

@ -1,5 +1,6 @@
package com.github.dfa.diaspora_android.activity; package com.github.dfa.diaspora_android.activity;
import android.annotation.SuppressLint;
import android.app.AlarmManager; import android.app.AlarmManager;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.FragmentTransaction; import android.app.FragmentTransaction;
@ -284,6 +285,7 @@ public class SettingsActivity extends ThemedActivity {
* *
* @param type 1 -> Primary Color, 2 -> Accent Color * @param type 1 -> Primary Color, 2 -> Accent Color
*/ */
@SuppressLint("InflateParams")
public void showColorPickerDialog(final int type) { public void showColorPickerDialog(final int type) {
final AppSettings appSettings = ((App) getActivity().getApplication()).getSettings(); final AppSettings appSettings = ((App) getActivity().getApplication()).getSettings();
final Context context = getActivity(); final Context context = getActivity();

View file

@ -1,6 +1,7 @@
package com.github.dfa.diaspora_android.ui; package com.github.dfa.diaspora_android.ui;
import android.annotation.SuppressLint;
import android.app.Dialog; import android.app.Dialog;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
@ -9,6 +10,7 @@ import android.text.TextUtils;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.widget.ArrayAdapter; import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox; import android.widget.CheckBox;
import android.widget.EditText; import android.widget.EditText;
import android.widget.RadioGroup; import android.widget.RadioGroup;
@ -93,6 +95,12 @@ public class PodSelectionDialog extends ThemedAppCompatDialogFragment {
@BindView(R.id.podselection__dialog__text_protocol) @BindView(R.id.podselection__dialog__text_protocol)
TextView textProtocol; TextView textProtocol;
@BindView(R.id.podselection__dialog__btn_ok)
Button btnOk;
@BindView(R.id.podselection__dialog__btn_cancel)
Button btnCancel;
private PodSelectionDialogResultListener resultListener; private PodSelectionDialogResultListener resultListener;
private View root; private View root;
private DiasporaPod pod = new DiasporaPod(); private DiasporaPod pod = new DiasporaPod();
@ -100,6 +108,7 @@ public class PodSelectionDialog extends ThemedAppCompatDialogFragment {
@NonNull @NonNull
@Override @Override
@SuppressLint("InflateParams")
public Dialog onCreateDialog(Bundle savedInstanceState) { public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
LayoutInflater inflater = getActivity().getLayoutInflater(); LayoutInflater inflater = getActivity().getLayoutInflater();
@ -135,6 +144,8 @@ public class PodSelectionDialog extends ThemedAppCompatDialogFragment {
textProfile.setTextColor(ThemeHelper.getAccentColor()); textProfile.setTextColor(ThemeHelper.getAccentColor());
textProtocol.setTextColor(ThemeHelper.getAccentColor()); textProtocol.setTextColor(ThemeHelper.getAccentColor());
textTorPreset.setTextColor(ThemeHelper.getAccentColor()); textTorPreset.setTextColor(ThemeHelper.getAccentColor());
btnOk.setTextColor(ThemeHelper.getAccentColor());
btnCancel.setTextColor(ThemeHelper.getAccentColor());
ThemeHelper.updateEditTextColor(editPodAddress); ThemeHelper.updateEditTextColor(editPodAddress);
ThemeHelper.updateEditTextColor(editPodName); ThemeHelper.updateEditTextColor(editPodName);

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/nav_drawer" android:id="@+id/nav_drawer"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="110dp" android:layout_height="110dp"
android:background="@color/colorPrimary"
android:gravity="bottom" android:gravity="bottom"
android:orientation="vertical" android:orientation="vertical"
android:theme="@style/ThemeOverlay.AppCompat.Dark"> android:theme="@style/ThemeOverlay.AppCompat.Dark">
@ -36,7 +36,8 @@
android:layout_marginEnd="@dimen/activity_horizontal_margin_half" android:layout_marginEnd="@dimen/activity_horizontal_margin_half"
android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginStart="@dimen/activity_horizontal_margin"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" /> android:src="@drawable/ic_launcher"
tools:ignore="ContentDescription" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -11,6 +11,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="?android:attr/buttonBarStyle"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -88,14 +89,14 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="http" /> android:text="@string/http" />
<RadioButton <RadioButton
android:id="@+id/podselection__dialog__radio_https" android:id="@+id/podselection__dialog__radio_https"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="https" /> android:text="@string/https" />
</RadioGroup> </RadioGroup>
<TextView <TextView
@ -127,6 +128,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
style="?android:attr/buttonBarButtonStyle"
android:text="@android:string/cancel" /> android:text="@android:string/cancel" />
<Button <Button
@ -134,6 +136,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
style="?android:attr/buttonBarButtonStyle"
android:text="@android:string/ok" /> android:text="@android:string/ok" />
</LinearLayout> </LinearLayout>

View file

@ -1,7 +1,8 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
tools:context=".activity.MainActivity"> tools:context=".activity.MainActivity"
tools:ignore="AlwaysShowAction">
<item <item

View file

@ -1,7 +1,8 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
tools:context=".activity.MainActivity"> tools:context=".activity.MainActivity"
tools:ignore="AlwaysShowAction">
<item <item
android:id="@+id/action_notifications" android:id="@+id/action_notifications"

View file

@ -1,7 +1,8 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
tools:context=".activity.MainActivity"> tools:context=".activity.MainActivity"
tools:ignore="AlwaysShowAction">
<item <item
android:id="@+id/action_notifications" android:id="@+id/action_notifications"

View file

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="AlwaysShowAction">
<item <item
android:icon="@drawable/ic_share_white_48px" android:icon="@drawable/ic_share_white_48px"

View file

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/action_reload" android:id="@+id/action_reload"
android:icon="@drawable/ic_refresh_white_48px" android:icon="@drawable/ic_refresh_white_48px"
android:orderInCategory="1000" android:orderInCategory="1000"
android:title="@string/reload" android:title="@string/reload"
app:showAsAction="always" /> app:showAsAction="always" />
</menu> </menu>

View file

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources xmlns:tools="http://schemas.android.com/tools"
tools:ignore="UnusedResources">
<color name="colorPrimary">@color/md_blue_650</color> <color name="colorPrimary">@color/md_blue_650</color>
<color name="colorPrimaryDark">@color/md_blue_750</color> <color name="colorPrimaryDark">@color/md_blue_750</color>
<color name="colorAccent">@color/md_deep_orange_650</color> <color name="colorAccent">@color/md_deep_orange_650</color>

View file

@ -119,6 +119,8 @@
<string name="podselection__custom_pod">Custom Pod</string> <string name="podselection__custom_pod">Custom Pod</string>
<string name="pod_name">Pod name</string> <string name="pod_name">Pod name</string>
<string name="http_protocol">Protocol</string> <string name="http_protocol">Protocol</string>
<string name="http" translatable="false">http</string>
<string name="https" translatable="false">https</string>
<string name="pod_address">Pod address</string> <string name="pod_address">Pod address</string>
<string name="missing_value">Missing value</string> <string name="missing_value">Missing value</string>
</resources> </resources>