Fix lint warnings (#4019)
Clears the baseline of issues in our code, and resolves most of the straightforward warnings from the report
This commit is contained in:
parent
7dfc8790c7
commit
f99cb6d1d5
35 changed files with 154 additions and 252 deletions
|
|
@ -12,12 +12,11 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License along with Tusky; if not,
|
||||
* see <http://www.gnu.org/licenses>. */
|
||||
package com.keylesspalace.tusky.interfaces
|
||||
|
||||
package com.keylesspalace.tusky.interfaces;
|
||||
|
||||
public interface AccountActionListener {
|
||||
void onViewAccount(String id);
|
||||
void onMute(final boolean mute, final String id, final int position, final boolean notifications);
|
||||
void onBlock(final boolean block, final String id, final int position);
|
||||
void onRespondToFollowRequest(final boolean accept, final String id, final int position);
|
||||
interface AccountActionListener {
|
||||
fun onViewAccount(id: String)
|
||||
fun onMute(mute: Boolean, id: String, position: Int, notifications: Boolean)
|
||||
fun onBlock(block: Boolean, id: String, position: Int)
|
||||
fun onRespondToFollowRequest(accept: Boolean, id: String, position: Int)
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package com.keylesspalace.tusky.interfaces;
|
||||
|
||||
public interface PermissionRequester {
|
||||
void onRequestPermissionsResult(String[] permissions, int[] grantResults);
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package com.keylesspalace.tusky.interfaces
|
||||
|
||||
fun interface PermissionRequester {
|
||||
fun onRequestPermissionsResult(permissions: Array<String>, grantResults: IntArray)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue